fix 本地存储 upload 后将文件识别为文件夹的问题

This commit is contained in:
wdmcheng
2024-11-17 11:50:33 +08:00
parent cceb22d729
commit 4f7d8866a0

View File

@@ -193,7 +193,7 @@ class LocalStorage(StorageBase):
if code != 0:
logger.error(f"移动文件失败:{message}")
return None
return self.__get_diritem(target_path)
return self.get_item(target_path)
def copy(self, fileitem: schemas.FileItem, target_file: Path) -> bool:
"""