moved check a little to fix behaviour
This commit is contained in:
parent
f851d15964
commit
547b6c3bc7
@ -94,13 +94,13 @@ class sftp_remote:
|
||||
local_sha256 = self.digest(local_temp_folder)
|
||||
os.remove(local_temp_folder)
|
||||
#print('removing: ', local_temp_folder)
|
||||
if local_sha256 == sha256:
|
||||
#print('sha confirmed')
|
||||
return True
|
||||
time.sleep(2)
|
||||
sha256_local_upload_check = self.digest(local_path)
|
||||
sha256_local_upload_check = self.digest(local_path)
|
||||
if sha256 != sha256_local_upload_check:
|
||||
return False #file is currently being uploaded
|
||||
if local_sha256 == sha256:
|
||||
#print('sha confirmed')
|
||||
return True
|
||||
except SSHException as e:
|
||||
print(e)
|
||||
self.remote_error = e
|
||||
|
Loading…
Reference in New Issue
Block a user