Skip to content

Commit

Permalink
fix(AlistClient): 修复空文件返回错误
Browse files Browse the repository at this point in the history
  • Loading branch information
Akimio521 committed Nov 16, 2024
1 parent 2669ebe commit b0986a4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/api/alist/v3/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,8 @@ async def async_api_fs_list(self, dir_path: str) -> list[AlistPath]:

logger.debug(f"获取目录 {dir_path} 的文件列表成功")

if result["data"]["content"]["total"] == 0:
return []
return [
AlistPath(
server_url=self.url,
Expand Down

0 comments on commit b0986a4

Please sign in to comment.