file_tree 1.0.2 file_tree: ^1.0.2 copied to clipboard
Visualize the file tree of a directory.
Code on the Rocks • GitHub Repo • Pub.dev
Visualize the file tree of a directory 🌳
Installation #
dart pub global activate file_tree
Usage #
Output the file and directory tree of the current directory:
tree grow
Output:
├── LICENSE
├── test/
│ └── file_tree_test.dart
├── bin/
│ └── file_tree.dart
├── CHANGELOG.md
├── pubspec.lock
├── README.md
Output the file and directory tree using ASCII characters:
tree grow -a
Output:
+-- LICENSE
+-- test/
| `-- file_tree_test.dart
+-- bin/
| `-- file_tree.dart
+-- CHANGELOG.md
+-- pubspec.lock
+-- README.md
Output the file and directory tree and use emojis to indicate file type:
tree grow -e
Output:
├── 📄 LICENSE
├── 📁 test/
│ └── 📄 file_tree_test.dart
├── 📁 bin/
│ └── 📄 file_tree.dart
├── 📄 CHANGELOG.md
├── 📄 pubspec.lock
├── 📄 README.md
Help #
(tree grow -h
)
Print out a file tree for the current directory.
Usage: tree grow [arguments]
-a, --ascii Use only ASCII characters to draw the tree.
-e, --emojis Add emojis to the tree to indicate file types.
-i, --include_hidden Include hidden files in the tree