Skip to content

Commit fb1d3d6

Browse files
committed
missing 'never' condition in rsync
1 parent 66340a1 commit fb1d3d6

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
@@ -119,6 +119,8 @@ def rsync(
119119
if otherfile in otherfiles:
120120
if update_cond == "always":
121121
allfiles[k] = otherfile
122+
elif update_cond == "never":
123+
allfiles.pop(k)
122124
elif update_cond == "different":
123125
inf1 = source_field(v) if callable(source_field) else v[source_field]
124126
v2 = otherfiles[otherfile]

0 commit comments

Comments
 (0)