This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ncoghlan
Recipients eli.bendersky, eric.araujo, giampaolo.rodola, ncoghlan, pitrou, r.david.murray, ubershmekel
Date 2012-02-09.22:12:41
SpamBayes Score 9.492407e-15
Marked as misclassified No
Message-id <>
Given the complexities proposed for the dir matching, I'm shifting back to a solid -1 on this. Trying to match multi-part directories with globs is a nightmare and I currently don't allow it at all in walkdir. Instead, dir filtering and file filtering are expressed separately.

In 0.4, walkdir will allow the following to search the current directory for all Python source files in subdirectories named 'c':

    walk_files(included_files=["*.py"], included_dirs="c")

This discussion does mean I plan to add path filtering though, that works on the "dirpath" value directly (and *will* allow multi-part matches). So the "Python source files in subdirectories named 'd' of directories named 'c'" will be written something like:

    walk_files(included_files=["*.py"], included_paths="*/c/d")

I also plan to explore options to make the pattern matching function configurable (i.e. so you can pass in something like "")
Date User Action Args
2012-02-09 22:12:42ncoghlansetrecipients: + ncoghlan, pitrou, giampaolo.rodola, eric.araujo, r.david.murray, eli.bendersky, ubershmekel
2012-02-09 22:12:42ncoghlansetmessageid: <>
2012-02-09 22:12:41ncoghlanlinkissue13968 messages
2012-02-09 22:12:41ncoghlancreate