Update mineru/cli/fast_api.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Xiaomeng Zhao
2026-01-29 16:21:10 +08:00
committed by GitHub
parent e5c4881a50
commit 7f1639a29c

View File

@@ -94,7 +94,7 @@ def sanitize_filename(filename: str) -> str:
def cleanup_file(file_path: str) -> None:
"""清理临时 zip 文件"""
"""清理临时文件或目录"""
try:
if os.path.exists(file_path):
if os.path.isfile(file_path):