| | |
- lcount(base, pattern, func=<function <lambda>>)
- Counts the number of lines in each file found matching pattern.
Params:
base - root directory to start the search
pattern - pattern for glob to match (i.e '*.py')
func - boolean filter function
example: lambda x : True if len(x.strip()) else False #don't count empty lines
default: lambda x : True
- rglob(base, pattern)
- Recursive glob starting in specified directory
- rglob_(pattern)
- Performs a recursive glob in the current working directory
|