fix 115 api

This commit is contained in:
jxxghp
2025-03-21 21:01:37 +08:00
parent a860a8c02b
commit 2b9f7bca51
4 changed files with 53 additions and 12 deletions
+1 -3
View File
@@ -162,9 +162,7 @@ class Rclone(StorageBase):
return folder
# 逐级查找和创建目录
fileitem = schemas.FileItem(path="/")
for part in path.parts:
if part == "/":
continue
for part in path.parts[1:]:
dir_file = __find_dir(fileitem, part)
if dir_file:
fileitem = dir_file