diff --git a/get115list.exe b/get115list.exe index 73c1ea6..cfd0507 100644 Binary files a/get115list.exe and b/get115list.exe differ diff --git a/get115list.py b/get115list.py index 8149c43..be1f7eb 100644 --- a/get115list.py +++ b/get115list.py @@ -40,8 +40,10 @@ def walk_dir(fs,f,replaceroot): paths = path.split("/") if replaceroot!="": if len(paths)>=3: - path=os.path.join("/",replaceroot,*paths[2:]) - path=path.replace("\\/","|") + # path=os.path.join("/",replaceroot,*paths[2:]) + path = "/"+replaceroot+"/"+"/".join(paths[2:]) + path = path.replace("//","/") + path = path.replace("\\/","|") print(f"{path}\t{file_obj.size}") f.write(f"{path}\t{file_obj.size}\n") diff --git a/getalist.exe b/getalist.exe index 0ccbffa..5e1d7c1 100644 Binary files a/getalist.exe and b/getalist.exe differ diff --git a/getalist.py b/getalist.py index 64b8686..59deb5a 100644 --- a/getalist.py +++ b/getalist.py @@ -107,10 +107,13 @@ def walk(headers:dict, api_url:str, current_path="/", output_file=None, replacer continue if replaceroot!=None: if replaceroot=="": - full_path=os.path.join("/",*full_path.split("/")[2:]) + # full_path=os.path.join("/",*full_path.split("/")[2:]) + full_path = "/"+"/".join(full_path.split("/")[2:]) else: - full_path=os.path.join("/",replaceroot,*full_path.split("/")[2:]) - full_path=full_path.replace("\\/","|") + # full_path=os.path.join("/",replaceroot,*full_path.split("/")[2:]) + full_path = "/"+replaceroot+"/"+"/".join(full_path.split("/")[2:]) + full_path = full_path.replace("//","/") + full_path = full_path.replace("\\/","|") print(f"{full_path}\t{size}") if output_file != None: output_file.write(f"{full_path}\t{size}\n") diff --git a/getwebdavlist.exe b/getwebdavlist.exe index 7f95fce..aba061e 100644 Binary files a/getwebdavlist.exe and b/getwebdavlist.exe differ diff --git a/getwebdavlist.py b/getwebdavlist.py index a902b8d..4ee31ca 100644 --- a/getwebdavlist.py +++ b/getwebdavlist.py @@ -68,10 +68,13 @@ def walk(client, current_path="/", output_file=None, replaceroot=None, lastpath= continue if replaceroot!=None: if replaceroot=="": - full_path=os.path.join("/",*full_path.split("/")[2:]) + # full_path=os.path.join("/",*full_path.split("/")[2:]) + full_path = "/"+"/".join(full_path.split("/")[2:]) else: - full_path=os.path.join("/",replaceroot,*full_path.split("/")[2:]) - full_path=full_path.replace("\\/","|") + # full_path=os.path.join("/",replaceroot,*full_path.split("/")[2:]) + full_path = "/"+replaceroot+"/"+"/".join(full_path.split("/")[2:]) + full_path = full_path.replace("//","/") + full_path = full_path.replace("\\/","|") print(f"{full_path}\t{size}") if output_file != None: output_file.write(f"{full_path}\t{size}\n") diff --git a/webdav_simulator.amd64 b/webdav_simulator.amd64 index 22432e1..cafcfe2 100644 Binary files a/webdav_simulator.amd64 and b/webdav_simulator.amd64 differ diff --git a/webdav_simulator.arm64 b/webdav_simulator.arm64 index 9611b40..81c5b42 100644 Binary files a/webdav_simulator.arm64 and b/webdav_simulator.arm64 differ diff --git a/webdav_simulator.exe b/webdav_simulator.exe index 61fa147..c5208a2 100644 Binary files a/webdav_simulator.exe and b/webdav_simulator.exe differ