Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion app/modules/alist/v3/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,8 +373,8 @@ async def iter_path(
"""

for path in await self.async_api_fs_list(dir_path):
await sleep(wait_time)
if path.is_dir:
await sleep(wait_time)
async for child_path in self.iter_path(
dir_path=path.path,
wait_time=wait_time,
Expand All @@ -385,6 +385,7 @@ async def iter_path(

if filter(path):
if is_detail:
await sleep(wait_time)
yield await self.async_api_fs_get(path.path)
else:
yield path
Expand Down