diff options
| author | Robert Honz <exislow+github@gmail.com> | 2024-04-02 15:21:57 +0200 |
|---|---|---|
| committer | Robert Honz <exislow+github@gmail.com> | 2024-04-02 15:21:57 +0200 |
| commit | 5014f510c9b958fe120043154dd9f96dd4dc98fa (patch) | |
| tree | 77fc3ccbcf88b111a624a3baafc6a3e2dc108364 /tidal_dl_ng/helper/path.py | |
| parent | 48d3212c5eed848e93bee3903175c377e66db8f1 (diff) | |
| download | tidal-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.py | 3 |
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 |
