diff options
Diffstat (limited to 'python/remote.py')
| -rw-r--r-- | python/remote.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/python/remote.py b/python/remote.py index bce065fd..23513587 100644 --- a/python/remote.py +++ b/python/remote.py @@ -59,14 +59,14 @@ class SftpClient(Client): if not local_file.exists(): self.client.get(f"{src}/{f}", localpath=local_file) - def put(self, src: Union[pathlib.Path, bytes], dst: str = None): + def put(self, src: Union[pathlib.Path, bytes], dst: str = None, confirm=True): if isinstance(src, pathlib.Path): if dst is None: dst = src.name with src.open("rb") as fh: - self.client.putfo(fh, dst) + self.client.putfo(fh, dst, confirm=confirm) else: - self.client.putfo(BytesIO(src), dst) + self.client.putfo(BytesIO(src), dst, confirm=confirm) class SftpClient2(Client): |
