添加U盘升级功能

This commit is contained in:
ranchuan
2023-09-22 18:26:14 +08:00
parent 4292478f67
commit d8e41f133b
9 changed files with 304 additions and 14 deletions

View File

@@ -130,9 +130,9 @@ class myftp(QObject):
src_path=src_list[self.index]
if os.path.exists(src_path):
self.send_cmd("rm "+i)
self.send_cmd("rm "+i,sleep_s=2)
# self.sftp.chmod(i.replace(file_name[-1],""),777)
self.send_cmd("chmod "+"777 "+i.replace(file_name[-1],""))
self.send_cmd("chmod "+"777 "+i.replace(file_name[-1],""),sleep_s=2)
try:
self.sftp.put(localpath=src_path, remotepath=i,callback=self.put_cb)
except Exception as r: