mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-05 07:27:15 +08:00
Merge pull request #4903 from imtms/v2
This commit is contained in:
@@ -294,6 +294,9 @@ class LocalStorage(StorageBase):
|
|||||||
try:
|
try:
|
||||||
src = Path(fileitem.path)
|
src = Path(fileitem.path)
|
||||||
dest = path / new_name
|
dest = path / new_name
|
||||||
|
if src == dest:
|
||||||
|
# 目标和源文件相同,直接返回成功,不做任何操作
|
||||||
|
return True
|
||||||
if self.__should_show_progress(src, dest):
|
if self.__should_show_progress(src, dest):
|
||||||
if self._copy_with_progress(src, dest):
|
if self._copy_with_progress(src, dest):
|
||||||
# 复制成功删除源文件
|
# 复制成功删除源文件
|
||||||
|
|||||||
Reference in New Issue
Block a user