--include / -i¶
The --include
flag allows you to show only specific files or directories when building the tree.
You can use glob patterns (wildcards) to match multiple paths.
Usage¶
Example¶
Files in project¶
Command¶
Output¶
Only *.py
and *.md
files are included in the tree.
Tips¶
- Multiple
--include
flags can be combined to include several file types. - Combine with
--exclude
to refine filtering:
- Works with
--format md
to generate filtered Markdown documentation.