]> git.treefish.org Git - photosort.git/commitdiff
fix find file exclude dir check
authorAlexander Schmidt <alex@treefish.org>
Fri, 16 Oct 2020 12:46:25 +0000 (14:46 +0200)
committerAlexander Schmidt <alex@treefish.org>
Fri, 16 Oct 2020 12:46:25 +0000 (14:46 +0200)
src/misc.py

index 9f5d677ff8abce6a477a1973dc174f68ad7ebe9c..d47a9cf6b94ff855c42cd50c8a1d1c85d510e15f 100644 (file)
@@ -23,7 +23,7 @@ def extract_timestamp(file_path, use_exif=False):
 
 def find_file(dir_path, file_name, file_size, exclude_dir):
     for root, dirs, files in os.walk(dir_path):
-        if root == exclude_dir:
+        if root.startswith(exclude_dir):
             continue
         for f in files:
             if f == file_name: