🛠️ Duplicates check now detects all files correct.

This commit is contained in:
Robert Honz
2024-04-02 15:21:57 +02:00
parent 48d3212c5e
commit 5014f510c9
2 changed files with 6 additions and 7 deletions
+1 -2
View File
@@ -1,4 +1,3 @@
import glob
import math
import os
import re
@@ -241,7 +240,7 @@ def check_file_exists(path_file: str, extension_ignore: bool = False) -> bool:
else:
path_files: [str] = [path_file]
result = bool(sum([glob.glob(_file) for _file in path_files], []))
result = bool(sum([[True] if os.path.isfile(_file) else [] for _file in path_files], []))
return result