Skip to content

Commit

Permalink
Merge pull request #3100 from getnikola/fix-3099
Browse files Browse the repository at this point in the history
Don't walk down .DS_Store, Fix #3099
  • Loading branch information
Kwpolska committed Jun 5, 2018
2 parents e4bdaa9 + b5a4216 commit 5570293
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES.txt
Expand Up @@ -13,6 +13,7 @@ Bugfixes
--------

* Implement ``MARKDOWN_EXTENSION_CONFIGS`` properly (Issue #2970)
* Ignore ``.DS_Store`` when processing listings (Issue #3099)

New in v8.0.0b2 (changes since Beta 1)
======================================
Expand Down
2 changes: 2 additions & 0 deletions nikola/plugins/task/listings.py
Expand Up @@ -222,6 +222,8 @@ def render_listing(in_name, out_name, input_folder, output_folder, folders=[], f
'clean': True,
}, self.kw["filters"])
for f in files:
if f == '.DS_Store':
continue
ext = os.path.splitext(f)[-1]
if ext in ignored_extensions:
continue
Expand Down

0 comments on commit 5570293

Please sign in to comment.