Skip to content

Commit 28cbf1d

Browse files
committed
Merge pull request #52 from tanelpuhu/skip-dotfiles
Skip dotfiles when organizing files based on creation date
2 parents 4a39338 + 337ade4 commit 28cbf1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

classifier/classifier.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def classify_by_date(date_format, output_dir):
4747
print("Scanning Files")
4848

4949
directory = os.getcwd()
50-
files = os.listdir(directory)
50+
files = [x for x in os.listdir(directory) if not x.startswith('.')]
5151
creation_dates = map(lambda x: (x, arrow.get(os.path.getctime(x))), files)
5252

5353
for file, creation_date in creation_dates:

0 commit comments

Comments
 (0)