getpelican/pelican — pull request #1454 by CNBorn (2014-09-03 00:26:39+00:00)
Title: Ignore files not only by their basename but the whole path

I want to ignore files not only by their extensions but their path when generating. It is extremely useful while we simply want to ignore a bulk of files for later editing, etc.

With this modification you can have IGNORE_FILES like this:

IGNORE_FILES = ['.DS_Store', 'README.md', 'legacy/*.rst']

While the .DS_Store and README.md file will be ignore just like before, all .rst files under legacy directory will be ignored, too.