Also report transfer progress on MOVE
Previously transfers were only reported when copying files.
This commit is contained in:
parent
6edc15594d
commit
7fe06c247b
@ -82,8 +82,12 @@ class FileCopier(transfer.FileTransferer):
|
||||
log.info('Skipped %d files', self.files_skipped)
|
||||
|
||||
def move(self, srcpath: pathlib.Path, dstpath: pathlib.Path):
|
||||
s_stat = srcpath.stat()
|
||||
shutil.move(str(srcpath), str(dstpath))
|
||||
|
||||
self.files_transferred += 1
|
||||
self.report_transferred(s_stat.st_size)
|
||||
|
||||
def copyfile(self, srcpath: pathlib.Path, dstpath: pathlib.Path):
|
||||
"""Copy a file, skipping when it already exists."""
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user