Skip to content

Commit

Permalink
add ignored folders
Browse files Browse the repository at this point in the history
Alexander Bonelis committed Jun 27, 2018
1 parent 3c16885 commit fd97cee
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/phockup.py
Original file line number Diff line number Diff line change
@@ -11,7 +11,7 @@
from src.exif import Exif

ignored_files = (".DS_Store", "Thumbs.db")

ignored_folders = (".@__thumb")

class Phockup():
def __init__(self, input_path, **args):
@@ -148,9 +148,14 @@ def walk_directory(self):
Walk input directory recursively and call process_file for each file except the ignored ones
"""
for root, dirs, files in os.walk(self.input_path):
if (root in ignored_folders):
self.log.info("skip foler: '%s' " % root)
continue

files.sort()
for filename in files:
if filename in ignored_files:
self.log.info("skip file: '%s' " % filename)
continue

file = os.path.join(root, filename)

0 comments on commit fd97cee

Please sign in to comment.