fix 调整重新整理的删除顺序

This commit is contained in:
jxxghp 2023-09-03 17:37:06 +08:00
parent 57abc7816b
commit 08a3d02daf

View File

@ -464,6 +464,10 @@ class TransferChain(ChainBase):
# 更新媒体图片
self.obtain_images(mediainfo=mediainfo)
# 删除旧的已整理文件
if history.dest:
self.delete_files(Path(history.dest))
# 转移
state, errmsg = self.do_transfer(path=src_path,
mediainfo=mediainfo,
@ -471,10 +475,6 @@ class TransferChain(ChainBase):
if not state:
return False, errmsg
# 删除旧的已整理文件
if history.dest:
self.delete_files(Path(history.dest))
# 删除旧历史记录
self.transferhis.delete(logid)