更新文件: getwebdavlist.exe, webdav_simulator.arm64, getalist.exe, getwebdavlist.py, webdav_simulator.amd64 等9个文件

This commit is contained in:
ZJP Monitor
2025-06-07 23:29:29 +08:00
parent 72729f0e56
commit 90178dc9fc
9 changed files with 16 additions and 8 deletions

View File

@ -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")