Also remove items from the collections itself

This commit is contained in:
Unrud 2016-01-15 01:13:18 +01:00
parent 5081fcbcd1
commit a55cff8eb6

View File

@ -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)