fixes Path value in read_content result

This commit is contained in:
artus
2018-11-19 14:47:22 +01:00
parent 4207c37b9b
commit 8d3bf00b09

View File

@@ -45,10 +45,11 @@ class Store:
content = Content() content = Content()
for path, _, filenames in os.walk(self.path): for path, _, filenames in os.walk(self.path):
# Ignore excluded folders # Ignore excluded folders
if exclude and Path(path).absolute().name == exclude: path = Path(path)
if exclude and path.absolute().name == exclude:
continue continue
for name in filenames: for name in filenames:
content[name] = path + "/" + name content[name] = path / name
return content return content
def copy_content(self, content): def copy_content(self, content):