mirror of
https://github.com/Kozea/Radicale.git
synced 2025-06-26 16:45:52 +00:00
Also remove items from the collections itself
This commit is contained in:
parent
5081fcbcd1
commit
a55cff8eb6
1 changed files with 2 additions and 0 deletions
|
@ -72,6 +72,8 @@ class Collection(filesystem.Collection):
|
||||||
"Can't tranlate name safely to filesystem, "
|
"Can't tranlate name safely to filesystem, "
|
||||||
"skipping component: %s", name)
|
"skipping component: %s", name)
|
||||||
return
|
return
|
||||||
|
if name in self.items:
|
||||||
|
del self.items[name]
|
||||||
filesystem_path = os.path.join(self._filesystem_path, name)
|
filesystem_path = os.path.join(self._filesystem_path, name)
|
||||||
if os.path.exists(filesystem_path):
|
if os.path.exists(filesystem_path):
|
||||||
os.remove(filesystem_path)
|
os.remove(filesystem_path)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue