Skip to content

Commit

Permalink
Merge pull request #2729 from Aqr-K/dev
Browse files Browse the repository at this point in the history
  • Loading branch information
jxxghp authored Sep 16, 2024
2 parents 3c43055 + 148e4a9 commit d5aa52e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/modules/filemanager/storages/rclone.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def list(self, fileitm: schemas.FileItem) -> Optional[List[schemas.FileItem]]:
return [self.__get_rcloneitem(item) for item in items]
except Exception as err:
logger.error(f"rclone浏览文件失败:{err}")
return None
return []

def create_folder(self, fileitm: schemas.FileItem, name: str) -> Optional[schemas.FileItem]:
"""
Expand Down
2 changes: 1 addition & 1 deletion app/modules/filemanager/storages/u115.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def list(self, fileitem: schemas.FileItem) -> Optional[List[schemas.FileItem]]:
浏览文件
"""
if not self.__init_cloud():
return None
return []
try:
items = self.cloud.storage().list(dir_id=fileitem.fileid)
return [schemas.FileItem(
Expand Down

0 comments on commit d5aa52e

Please sign in to comment.