fix #403 修复蓝光原盘转移失败
This commit is contained in:
@ -264,6 +264,9 @@ class FileTransferModule(_ModuleBase):
|
|||||||
"""
|
"""
|
||||||
retcode = 0
|
retcode = 0
|
||||||
for file in src_dir.glob("**/*"):
|
for file in src_dir.glob("**/*"):
|
||||||
|
# 过滤掉目录
|
||||||
|
if file.is_dir():
|
||||||
|
continue
|
||||||
# 使用target_dir的父目录作为新的父目录
|
# 使用target_dir的父目录作为新的父目录
|
||||||
new_file = target_dir.joinpath(file.relative_to(src_dir))
|
new_file = target_dir.joinpath(file.relative_to(src_dir))
|
||||||
if new_file.exists():
|
if new_file.exists():
|
||||||
|
Reference in New Issue
Block a user