summaryrefslogtreecommitdiff
path: root/tidal_dl_ng/helper/path.py
diff options
context:
space:
mode:
authorRobert Honz <exislow+github@gmail.com>2024-04-02 15:21:57 +0200
committerRobert Honz <exislow+github@gmail.com>2024-04-02 15:21:57 +0200
commit5014f510c9b958fe120043154dd9f96dd4dc98fa (patch)
tree77fc3ccbcf88b111a624a3baafc6a3e2dc108364 /tidal_dl_ng/helper/path.py
parent48d3212c5eed848e93bee3903175c377e66db8f1 (diff)
downloadtidal-dl-ng-5014f510c9b958fe120043154dd9f96dd4dc98fa.tar.gz
🛠️ Duplicates check now detects all files correct.
Diffstat (limited to 'tidal_dl_ng/helper/path.py')
-rw-r--r--tidal_dl_ng/helper/path.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/tidal_dl_ng/helper/path.py b/tidal_dl_ng/helper/path.py
index 91fe5cf..53d3290 100644
--- a/tidal_dl_ng/helper/path.py
+++ b/tidal_dl_ng/helper/path.py
@@ -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