]> git.treefish.org Git - photosort.git/blobdiff - src/misc.py
fix find file exclude dir check
[photosort.git] / 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: