From fb1d3d62fb5a0b9e870cf93c3be48c36717a0b01 Mon Sep 17 00:00:00 2001 From: Ouail Bendidi Date: Sun, 1 Jun 2025 22:47:19 +0200 Subject: [PATCH] missing 'never' condition in rsync --- fsspec/generic.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fsspec/generic.py b/fsspec/generic.py index af3677ec2..35f54149d 100644 --- a/fsspec/generic.py +++ b/fsspec/generic.py @@ -119,6 +119,8 @@ def rsync( if otherfile in otherfiles: if update_cond == "always": allfiles[k] = otherfile + elif update_cond == "never": + allfiles.pop(k) elif update_cond == "different": inf1 = source_field(v) if callable(source_field) else v[source_field] v2 = otherfiles[otherfile]