support case insensitive and normalized file and folder names.

This commit is contained in:
2023-07-19 13:46:23 +09:00
parent 0f12549ec3
commit b569c20b6e
5 changed files with 14 additions and 11 deletions

View File

@ -46,7 +46,7 @@ class UploadCommand(BaseCommand):
folder_map: dict[str, Folder] = {}
folder_map[r_path] = folder
l_basename = os.path.basename(l_path)
for dirpath, dirnames, filenames in os.walk(l_path):
for dirpath, _, filenames in os.walk(l_path):
sub = l_basename if dirpath == l_path else os.path.join(l_basename, os.path.relpath(dirpath, l_path))
d_dirname = os.path.join(r_path, sub)
d_basename = os.path.basename(d_dirname)