Skip to content

Commit

Permalink
Merge pull request #626 from thsrite/main
Browse files Browse the repository at this point in the history
  • Loading branch information
jxxghp authored Sep 20, 2023
2 parents b2fe86c + 9c328e3 commit 61694f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/chain/transfer.py
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,7 @@ def delete_files(path: Path):
break
if str(parent_path.parent) != str(path.root):
# 父目录非根目录,才删除父目录
if not SystemUtils.exits_files(path.parent, settings.RMT_MEDIAEXT):
if not SystemUtils.exits_files(parent_path, settings.RMT_MEDIAEXT):
# 当前路径下没有媒体文件则删除
shutil.rmtree(parent_path)
logger.warn(f"目录 {parent_path} 已删除")

0 comments on commit 61694f4

Please sign in to comment.