fixes Path value in read_content result
This commit is contained in:
@@ -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):
|
||||||
|
|||||||
Reference in New Issue
Block a user