}
table = {k:v for k,v in table.items() if v}
table["top"] = ""
- root = ProjectVFS(config.root, **table)
+ project = ProjectVFS(config.root, **table)
local = BaseVFS(config.local, **table)
for prefix in table:
- os.makedirs(root[prefix], exist_ok=True)
+ project.mkdir(prefix)
# First the files that are in old-files, but not in new-files:
return (tmp.name, True)
+ def mkdir(self, name):
+ """Create a leaf directory and all intermediate ones recursively."""
+ _os_.makedirs(self[name], exist_ok=True)
+
+
def unlink(self, name, backup=True):
"""Unlink a file, backing it up if necessary."""
if backup: