Skip to content

Commit

Permalink
Fix: 刮削软链接时误删原链接 (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
sqzw-x committed Jan 7, 2024
1 parent 1504037 commit bcd027a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/models/core/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ def move_movie(json_data, file_path, file_new_path):
# 自身是软链接时,获取真实路径
if os.path.islink(file_path):
file_path = read_link(file_path)
delete_file(temp_path)
# delete_file(temp_path)
# 删除目标路径存在的文件,否则会创建失败,
delete_file(file_new_path)
try:
Expand Down

0 comments on commit bcd027a

Please sign in to comment.