更新文件: 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

Binary file not shown.

View File

@ -40,8 +40,10 @@ def walk_dir(fs,f,replaceroot):
paths = path.split("/") paths = path.split("/")
if replaceroot!="": if replaceroot!="":
if len(paths)>=3: if len(paths)>=3:
path=os.path.join("/",replaceroot,*paths[2:]) # path=os.path.join("/",replaceroot,*paths[2:])
path=path.replace("\\/","|") path = "/"+replaceroot+"/"+"/".join(paths[2:])
path = path.replace("//","/")
path = path.replace("\\/","|")
print(f"{path}\t{file_obj.size}") print(f"{path}\t{file_obj.size}")
f.write(f"{path}\t{file_obj.size}\n") f.write(f"{path}\t{file_obj.size}\n")

Binary file not shown.

View File

@ -107,10 +107,13 @@ def walk(headers:dict, api_url:str, current_path="/", output_file=None, replacer
continue continue
if replaceroot!=None: if replaceroot!=None:
if replaceroot=="": 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: else:
full_path=os.path.join("/",replaceroot,*full_path.split("/")[2:]) # full_path=os.path.join("/",replaceroot,*full_path.split("/")[2:])
full_path=full_path.replace("\\/","|") full_path = "/"+replaceroot+"/"+"/".join(full_path.split("/")[2:])
full_path = full_path.replace("//","/")
full_path = full_path.replace("\\/","|")
print(f"{full_path}\t{size}") print(f"{full_path}\t{size}")
if output_file != None: if output_file != None:
output_file.write(f"{full_path}\t{size}\n") output_file.write(f"{full_path}\t{size}\n")

Binary file not shown.

View File

@ -68,10 +68,13 @@ def walk(client, current_path="/", output_file=None, replaceroot=None, lastpath=
continue continue
if replaceroot!=None: if replaceroot!=None:
if replaceroot=="": 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: else:
full_path=os.path.join("/",replaceroot,*full_path.split("/")[2:]) # full_path=os.path.join("/",replaceroot,*full_path.split("/")[2:])
full_path=full_path.replace("\\/","|") full_path = "/"+replaceroot+"/"+"/".join(full_path.split("/")[2:])
full_path = full_path.replace("//","/")
full_path = full_path.replace("\\/","|")
print(f"{full_path}\t{size}") print(f"{full_path}\t{size}")
if output_file != None: if output_file != None:
output_file.write(f"{full_path}\t{size}\n") output_file.write(f"{full_path}\t{size}\n")

Binary file not shown.

Binary file not shown.

Binary file not shown.