We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8acde84 commit ecf7f86Copy full SHA for ecf7f86
fsspec/generic.py
@@ -139,7 +139,7 @@ def rsync(
139
source_files, target_files = zip(*allfiles.items())
140
fs.cp(source_files, target_files, **kwargs)
141
logger.debug(f"{len(to_delete)} files to delete")
142
- if delete_missing:
+ if delete_missing and to_delete:
143
fs.rm(to_delete)
144
return allfiles
145
0 commit comments