This commit is contained in:
jxxghp
2023-10-09 21:13:36 +08:00
parent a7cedde721
commit 16077b3341
4 changed files with 4 additions and 3 deletions

View File

@ -97,7 +97,7 @@ class SystemUtils:
"""
try:
# link到当前目录并改名
tmp_path = (src.parent / dest.name).with_suffix(".mp")
tmp_path = src.parent / (dest.name + ".mp")
tmp_path.hardlink_to(src)
# 移动到目标目录
shutil.move(tmp_path, dest)