Skip to content

Commit 65dae8d

Browse files
authored
missing 'never' condition in rsync (#1852)
1 parent 6943420 commit 65dae8d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

fsspec/generic.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,8 @@ def rsync(
118118
if otherfile in otherfiles:
119119
if update_cond == "always":
120120
allfiles[k] = otherfile
121+
elif update_cond == "never":
122+
allfiles.pop(k)
121123
elif update_cond == "different":
122124
inf1 = source_field(v) if callable(source_field) else v[source_field]
123125
v2 = otherfiles[otherfile]

0 commit comments

Comments
 (0)