Simple File Tree
Show the directory tree structure of a folder. Displays files and subdirectories in a visual tree format. Use when the user wants to see what files are in a...
Latest: v1.0.0
- Initial release of file-tree skill.
- Displays a directory's file and subdirectory structure in a visual, indented tree format.
- Uses Bash tools: find, sort, and sed.
- Simple command interface with customizable directory path and maximum depth.
Full description
Show the directory tree structure of a folder. Displays files and subdirectories in a visual tree format. Use when the user wants to see what files are in a folder.
File Tree
Show the directory tree structure of any folder with a single command.
Usage
find <DIR_PATH> -maxdepth 3 | sort | sed 's|[^/]*/| |g'
Arguments:
| # | Name | Description |
|---|---|---|
| 1 | DIR_PATH | Path to the directory to display |
Example
find /home/user/project -maxdepth 3 | sort | sed 's|[^/]*/| |g'
Output:
project
src
main.py
utils.py
README.md
Success / Failure
- Success: Indented file listing printed to stdout (exit code 0)
- Failure: Error message (exit code non-zero, e.g. directory not found)
