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

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