treex - Cross-Platform Directory Tree Utility
Command-line utility for listing directory trees with file metadata and Git ignore support
I wanted a version of tree that worked cross-platform, showed useful file 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 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
$ treex --help
usage: treex [-h] [-a] [-m] [-s] [directory]
List directory contents as a tree with file 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
-s, --summary show summary only
Screenshot:
This post is licensed under CC BY 4.0 by the author.
