Basic find program, cut-down version of unix ‘find’. Walks a file hierarchy.
- find . -name ‘*.txt’
- find temp -type f
- find . -type d
- find . -name '*.rb' -exec rm {} ;
Run as follows:
- python -m basic_find . -name ‘*.txt’
- python -m basic_find temp -type f
- python -m basic_find . -type d