Also remove items from the collections itself
This commit is contained in:
parent
5081fcbcd1
commit
a55cff8eb6
@ -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…
Reference in New Issue
Block a user