From a55cff8eb6a17f06e965d5c9ac765bdf080bf66d Mon Sep 17 00:00:00 2001 From: Unrud Date: Fri, 15 Jan 2016 01:13:18 +0100 Subject: [PATCH] Also remove items from the collections itself --- radicale/storage/multifilesystem.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/radicale/storage/multifilesystem.py b/radicale/storage/multifilesystem.py index 3bd9b27..16b6c63 100644 --- a/radicale/storage/multifilesystem.py +++ b/radicale/storage/multifilesystem.py @@ -72,6 +72,8 @@ class Collection(filesystem.Collection): "Can't tranlate name safely to filesystem, " "skipping component: %s", name) return + if name in self.items: + del self.items[name] filesystem_path = os.path.join(self._filesystem_path, name) if os.path.exists(filesystem_path): os.remove(filesystem_path)