更新文件: getwebdavlist.exe, webdav_simulator.arm64, getalist.exe, getwebdavlist.py, webdav_simulator.amd64 等9个文件
This commit is contained in:
@ -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")
|
||||
|
Reference in New Issue
Block a user