Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jxxghp committed Sep 18, 2024
1 parent bb086d7 commit 69c3f9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/modules/filemanager/storages/u115.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,10 @@ def list(self, fileitem: schemas.FileItem) -> Optional[List[schemas.FileItem]]:
extension=Path(item.name).suffix[1:],
modify_time=item.modified_time.timestamp() if item.modified_time else 0,
pickcode=item.pickcode
) for item in items]
) for item in items if item]
except Exception as e:
logger.error(f"115浏览文件失败:{str(e)}")
return None
return []

def create_folder(self, fileitem: schemas.FileItem, name: str) -> Optional[schemas.FileItem]:
"""
Expand Down

0 comments on commit 69c3f9e

Please sign in to comment.