Skip to content

Commit

Permalink
D'oh
Browse files Browse the repository at this point in the history
  • Loading branch information
Roberto Alsina committed Jun 5, 2018
1 parent 76fe6ac commit c6895ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nikola/plugins/task/listings.py
Expand Up @@ -181,8 +181,6 @@ 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 Expand Up @@ -224,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 c6895ba

Please sign in to comment.