Traverse the file tree.
Project description
Walkmate
Traverse the file tree.
Installation
pip install walkmate
Usage
Given a multi-level directory structure:
├── one.py
├── two.py
├── child/
│ ├── three.py
We can list the files tree:
>>> list(tree("test/fixtures"))
["one.py", "two.py", "child/three.py"]
>>> list(tree("test/fixtures", depth=1))
["one.py", "two.py"]
>>> list(tree("test/fixtures", regex=r"two\.py$"))
["two.py"]
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
walkmate-1.3.1.tar.gz
(2.4 kB
view hashes)