From 98381265e6c9f66b885d87ba50cfafe6330cbaf9 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Mon, 7 Apr 2025 07:37:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20u115.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/modules/filemanager/storages/u115.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/modules/filemanager/storages/u115.py b/app/modules/filemanager/storages/u115.py index 17d9f9a4..cea1f8b8 100644 --- a/app/modules/filemanager/storages/u115.py +++ b/app/modules/filemanager/storages/u115.py @@ -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,