This commit is contained in:
jxxghp
2023-08-28 19:04:37 +08:00
parent 6a34c7196c
commit 8bc883b621
2 changed files with 4 additions and 2 deletions

View File

@ -72,6 +72,8 @@ def manual_transfer(path: str,
)
# 失败
if not state:
if isinstance(errormsg, list):
errormsg = f"整理完成,{len(errormsg)} 个文件转移失败!"
return schemas.Response(success=False, message=errormsg)
# 成功
return schemas.Response(success=True)