fix 调整重新整理的删除顺序
This commit is contained in:
parent
57abc7816b
commit
08a3d02daf
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user