Skip to content

Commit

Permalink
Check the existence of the remote file before transferring the file
Browse files Browse the repository at this point in the history
  • Loading branch information
hujay2019 authored Dec 24, 2023
1 parent 3ddb303 commit 4d02340
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pysqa/ext/remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ def _transfer_files(self, file_dict, sftp=None, transfer_back=False):
for file_src, file_dst in tqdm(file_dict.items()):
if transfer_back:
try:
sftp_client.stat(file_dst)
sftp_client.get(file_dst, file_src)
except FileNotFoundError:
pass
Expand Down

0 comments on commit 4d02340

Please sign in to comment.