glob.escape fits here

This commit is contained in:
Pozitronik 2023-06-18 21:58:22 +04:00
parent e9555ba52c
commit 3810556951

View File

@ -62,8 +62,7 @@ def restore_audio(target_path: str, output_path: str) -> None:
def get_temp_frame_paths(target_path: str) -> List[str]:
temp_directory_path = get_temp_directory_path(target_path)
files = glob.glob1(temp_directory_path, '*.png')
return [os.path.join(temp_directory_path, item) for item in files]
return glob.glob((os.path.join(glob.escape(temp_directory_path), '*.png')))
def get_temp_directory_path(target_path: str) -> str: