Minor fix (convert path to str)
This commit is contained in:
parent
2abd16d51c
commit
8362a258da
1 changed files with 1 additions and 1 deletions
|
@ -314,7 +314,7 @@ class SiteStorage(object):
|
|||
directory = self.getPath(dir_inner_path)
|
||||
for root, dirs, files in os.walk(directory):
|
||||
root = root.replace("\\", "/")
|
||||
root_relative_path = re.sub("^%s" % re.escape(directory), "", root).lstrip("/")
|
||||
root_relative_path = re.sub(f'^{re.escape(str(directory))}', '', root).lstrip('/')
|
||||
for file_name in files:
|
||||
if root_relative_path: # Not root dir
|
||||
file_relative_path = root_relative_path + "/" + file_name
|
||||
|
|
Loading…
Reference in a new issue