fixes Path value in read_content result
This commit is contained in:
@@ -45,10 +45,11 @@ class Store:
|
||||
content = Content()
|
||||
for path, _, filenames in os.walk(self.path):
|
||||
# Ignore excluded folders
|
||||
if exclude and Path(path).absolute().name == exclude:
|
||||
path = Path(path)
|
||||
if exclude and path.absolute().name == exclude:
|
||||
continue
|
||||
for name in filenames:
|
||||
content[name] = path + "/" + name
|
||||
content[name] = path / name
|
||||
return content
|
||||
|
||||
def copy_content(self, content):
|
||||
|
||||
Reference in New Issue
Block a user