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