mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-03-20 03:57:30 +08:00
Co-authored-by: jxxghp <51039935+jxxghp@users.noreply.github.com>
This commit is contained in:
@@ -166,8 +166,10 @@ class SystemUtils:
|
|||||||
移动
|
移动
|
||||||
"""
|
"""
|
||||||
try:
|
try:
|
||||||
# 直接移动到目标路径,避免中间改名步骤触发目录监控
|
# 当前目录改名
|
||||||
shutil.move(src, dest)
|
temp = src.replace(src.parent / dest.name)
|
||||||
|
# 移动到目标目录
|
||||||
|
shutil.move(temp, dest)
|
||||||
return 0, ""
|
return 0, ""
|
||||||
except Exception as err:
|
except Exception as err:
|
||||||
return -1, str(err)
|
return -1, str(err)
|
||||||
|
|||||||
Reference in New Issue
Block a user