mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-06 16:07:01 +08:00
更新 local.py
This commit is contained in:
@@ -187,7 +187,11 @@ class LocalStorage(StorageBase):
|
|||||||
"""
|
"""
|
||||||
上传文件
|
上传文件
|
||||||
"""
|
"""
|
||||||
file_path = path.rename(fileitem.path)
|
file_path = Path(fileitem.path)
|
||||||
|
code, message = SystemUtils.move(path, file_path)
|
||||||
|
if code != 0:
|
||||||
|
logger.error(f"移动文件失败:{message}")
|
||||||
|
return None
|
||||||
return self.__get_diritem(file_path)
|
return self.__get_diritem(file_path)
|
||||||
|
|
||||||
def copy(self, fileitem: schemas.FileItem, target_file: Path) -> bool:
|
def copy(self, fileitem: schemas.FileItem, target_file: Path) -> bool:
|
||||||
|
|||||||
Reference in New Issue
Block a user