treex - Cross-Platform Directory Tree Utility
Command-line utility for listing directory trees with metadata and Git ignore support
I wanted a version of tree that worked cross-platform, showed useful metadata, and respected Git’s ignore rules. So I wrote a small Python command-line utility for displaying directory contents as a tree, with information like recursive directory sizes, file sizes, line counts, and modification times.
You can install treex from PyPI, and follow development on GitHub (MIT licensed).
Usage:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$ treex --help
usage: treex [-h] [-a] [-m] [-q] [-d] [-s] [directory]
List directory contents as a tree with file and directory metadata.
positional arguments:
directory directory to scan (default: current directory)
options:
-h, --help show this help message and exit
-a, --all show all files, including those ignored by Git
-m, --modified show file modification times
-q, --quiet don't show file metadata
-d, --dirs show directories only
-s, --summary show summary only
Screenshot:
This post is licensed under CC BY 4.0 by the author.
