mirror of
https://github.com/opendatalab/MinerU.git
synced 2026-03-27 11:08:32 +07:00
Update mineru/cli/fast_api.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user