Speedup SiblingFileCollection removal.
@@ -370,6 +370,11 @@ class SiblingFileCollection(FileCollection):
missing_keys = [key for key in self.keys() if key not in existing_keys]
return n if not keys else (n, missing_keys)
+ def remove(self, silent=True):
+ for targets in self.iter_existing():
+ for t in targets:
+ t.remove(silent=silent)
+
class NestedSiblingFileCollection(FileCollection):
"""
@@ -479,6 +484,11 @@ class NestedSiblingFileCollection(FileCollection):
missing_keys = [key for key in self.keys() if key not in existing_keys]
return n if not keys else (n, missing_keys)
+ def remove(self, silent=True):
+ for targets in self.iter_existing():
+ for t in targets:
+ t.remove(silent=silent)
+
def flatten_collections(*targets):
lookup = flatten(targets)
