Skip to content

Commit

Permalink
当分享是一个文件夹时,读取文件夹内列表
Browse files Browse the repository at this point in the history
  • Loading branch information
Cp0204 committed Mar 20, 2024
1 parent a0f4b58 commit 292ab70
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions quark_auto_save.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,10 @@ def get_detail(pwd_id, stoken, pdir_fid):
break
if len(file_list) >= response["metadata"]["_total"]:
break
# 仅有一个文件夹
if len(file_list) == 1 and file_list[0]["file_type"] == 0:
print("🧠 该分享是一个文件夹,读取文件夹内列表")
file_list = get_detail(pwd_id, stoken, file_list[0]["fid"])
return file_list


Expand Down

0 comments on commit 292ab70

Please sign in to comment.