fix download file auto remove % (#1619)

This commit is contained in:
Shuchang Zheng
2025-01-23 02:37:35 +08:00
committed by GitHub
parent f1f3d1cdd5
commit 8b55e1dad4

View File

@@ -145,7 +145,7 @@ def get_number_of_files_in_directory(directory: Path, recursive: bool = False) -
def sanitize_filename(filename: str) -> str:
return "".join(c for c in filename if c.isalnum() or c in ["-", "_", "."])
return "".join(c for c in filename if c.isalnum() or c in ["-", "_", ".", "%", " "])
def rename_file(file_path: str, new_file_name: str) -> str: