Skip to content
This repository has been archived by the owner on Mar 26, 2019. It is now read-only.

Commit

Permalink
also exclude subdirectories
Browse files Browse the repository at this point in the history
  • Loading branch information
bbinet committed May 17, 2011
1 parent 658ea0c commit 9eb1b28
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion z3c/recipe/filetemplate/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ def __init__(self, buildout, name, options):
def visit(ignored, dirname, names):
relative_prefix = dirname[len(self.source_dir)+1:]
if relative_prefix in self.exclude_dirs:
# exclude current directory
# exclude current directory and its subdirectories
del names[:]
return
file_info = {}
for name in names:
Expand Down

0 comments on commit 9eb1b28

Please sign in to comment.