更新 u115.py

This commit is contained in:
jxxghp
2025-04-07 07:37:00 +08:00
committed by GitHub
parent d323159719
commit 98381265e6

View File

@@ -695,7 +695,7 @@ class U115Pan(StorageBase, metaclass=Singleton):
return schemas.FileItem(
storage=self.schema.value,
fileid=str(resp["file_id"]),
path=str(path) + ("/" if resp["file_category"] == "1" else ""),
path=str(path) + ("/" if resp["file_category"] == "0" else ""),
type="file" if resp["file_category"] == "1" else "dir",
name=resp["file_name"],
basename=Path(resp["file_name"]).stem,