Skip to content
Permalink
Browse files
Don't walk down .DS_Store, Fix #3099
  • Loading branch information
ralsina committed Jun 5, 2018
1 parent e4bdaa9 commit 76fe6ace72104acc97ec8ada632599a0586676aa
Showing with 3 additions and 0 deletions.
  1. +1 −0 CHANGES.txt
  2. +2 −0 nikola/plugins/task/listings.py
@@ -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)
======================================
@@ -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}

0 comments on commit 76fe6ac

Please sign in to comment.