This commit is contained in:
jxxghp
2023-09-28 08:08:55 +08:00
parent 81d9d39029
commit e9ee9dbce1
2 changed files with 1 additions and 156 deletions

View File

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