Skip to content

Commit

Permalink
Don't walk down .DS_Store, Fix #3099
Browse files Browse the repository at this point in the history
  • Loading branch information
Roberto Alsina committed Jun 5, 2018
1 parent e4bdaa9 commit 76fe6ac
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)
* Don't walk down ".DS_Store" directories 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 @@ -181,6 +181,8 @@ def render_listing(in_name, out_name, input_folder, output_folder, folders=[], f

for input_folder, output_folder in self.kw['listings_folders'].items():
for root, dirs, files in os.walk(input_folder, followlinks=True):
if '.DS_Store' in root.split(os.path.sep):
continue
files = [f for f in files if os.path.splitext(f)[-1] not in ignored_extensions]

uptodate = {'c': self.site.GLOBAL_CONTEXT}
Expand Down

0 comments on commit 76fe6ac

Please sign in to comment.