Support honoring .gitignore
and .ignore
files
#7
Labels
c:filtering
c:gitignore
enhancement
New feature or request therefor
high priority
Work on these first
under consideration
Dev has not yet decided whether or how to implement
Possible API: Give
iterpath()
anignore: bool = False
(working name) argument; when true,.gitignore
and.ignore
files are honored during traversal.Alternatively,
ignore
can be set to an iterable of strings giving the names of files to treat as (git)ignore-style files to honor.Is it necessary to honor ignore files in parent directories of the starting directory?
How exactly should this work when
dirs
is True? Should anything be done about directories that don't contain any matching files? What about directories that don't match any patterns?Add an option for also honoring the
$HOME
-wide gitignore file?The text was updated successfully, but these errors were encountered: