mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
ignore not only basename but whole path
This commit is contained in:
parent
2b130fb4dd
commit
318056c448
1 changed files with 2 additions and 0 deletions
|
|
@ -107,6 +107,8 @@ class Generator(object):
|
|||
ignores = self.settings['IGNORE_FILES']
|
||||
if any(fnmatch.fnmatch(basename, ignore) for ignore in ignores):
|
||||
return False
|
||||
if any(fnmatch.fnmatch(path, ignore) for ignore in ignores):
|
||||
return False
|
||||
|
||||
if extensions is False or basename.endswith(extensions):
|
||||
return True
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue