Skip to content

Commit

Permalink
fix 115
Browse files Browse the repository at this point in the history
  • Loading branch information
jxxghp committed Nov 17, 2024
1 parent f752082 commit d7c8b08
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 @@ -241,7 +241,7 @@ def get_item(self, path: Path) -> Optional[schemas.FileItem]:
path=item.path + ("/" if item.is_directory else ""),
name=item.name,
size=item.size,
extension=item.suffix[1:] if not item.is_directory else None,
extension=Path(item.name).suffix[1:] if not item.is_directory else None,
modify_time=item.mtime,
thumbnail=item.get("thumb")
)
Expand All @@ -267,7 +267,7 @@ def detail(self, fileitem: schemas.FileItem) -> Optional[schemas.FileItem]:
path=item.path + ("/" if item.is_directory else ""),
name=item.name,
size=item.size,
extension=item.suffix[1:] if not item.is_directory else None,
extension=Path(item.name).suffix[1:] if not item.is_directory else None,
modify_time=item.mtime,
thumbnail=item.get("thumb")
)
Expand Down

0 comments on commit d7c8b08

Please sign in to comment.