A command-line tool for displaying a tree graph of the current directory, because dir
kind of sucks.
Warning This tool extensively uses nerd font icons. If you wish to disable icons you can specify the
--plain
option when invoking the tool, or clone the repo and manually edit the icon resource files. The tool is still usable without a nerd font, although using one is highly recommended.
- Download the latest binary from the releases into an appropriate directory.
- Add the directory to your PATH environment variable.
Warning Manual installation requires the .NET SDK >= 6.0.
- Clone this repo.
- Run
install-tool.ps1
.
git clone https://github.com/thinker227/FolderTool.git/
cd FolderTool
./install-tool.ps1
folder [<search-pattern>] [options]
An example invocation of the tool:
folder *.cs -r
The search pattern to display the current directory using, specified as a file search pattern. If --regex
is specified, the pattern should be a regular expression (.NET flavor).
Whether to display only the contents of the current directory (default) or of all sub-directories.
The maximum depth a recursive search will enumerate, where 0 will only enumerate the current directory. Only has an effect if -r|--recursive
is specified.
The mode to display paths using.
Full
: Displays the full absolute path to every item.Name
: Display only the name of every item.Relative
(default): Displays the relative path from the current directory to every item.
Disables colors and icons when rendering the output. Ideal for terminals which don't support nerd fonts.
Whether to treat [<search-pattern>]
as a Regex (.NET flavor) instead of a file system search pattern. The regex specified will be run on every item and the item will only be displayed if the pattern matches.
Show version information.
Show help and usage information.