|
wtools
3.3.1
ESO waf tools
|
Functions | |
| def | recurse_patterns (ctx, patterns) |
| def | recurse (patterns) |
Provides ways to recurse into subdirectories
| def wtools.recurse.recurse | ( | patterns | ) |
Declare recursion commands for standard commands
The recursion patterns is a variant of standard Python `fnmatch`:
Pattern | Meaning
----------- | ----------------------------------------------------------
`*` | matches anything
`?` | matches single character
`[seq]` | matches any character in _seq_
`[!seq]` | matches any character not in _seq_
`!` | negates the pattern, must be the first part of the pattern
Args:
patterns: Glob patterns in a list or space separated in a string
"*foo *bar" is equivalent to ['*foo', '*bar']
| def wtools.recurse.recurse_patterns | ( | ctx, | |
| patterns | |||
| ) |
Perform recursion using current ctx and patterns.