From 5014f510c9b958fe120043154dd9f96dd4dc98fa Mon Sep 17 00:00:00 2001 From: Robert Honz Date: Tue, 2 Apr 2024 15:21:57 +0200 Subject: 🛠️ Duplicates check now detects all files correct. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tidal_dl_ng/helper/path.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tidal_dl_ng/helper/path.py') 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 -- cgit v1.3.1