Crates.io | treestats |
lib.rs | treestats |
version | 0.1.0 |
source | src |
created_at | 2022-10-10 16:16:20.684493 |
updated_at | 2022-10-10 16:16:20.684493 |
description | Command-line tool to produce statistics about a directory tree |
homepage | https://github.com/Arkanosis/treestats |
repository | https://github.com/Arkanosis/treestats |
max_upload_size | |
id | 684743 |
size | 12,684 |
treestats is a simple tool to compute the count and the total size of each file extension in a directory tree.
Usage: treestats analyze <directory>
treestats -h | --help
treestats --version
Commands:
analyze Analyze a directory tree and output statistics.
Arguments:
directory Root directory of the directory tree to analyze.
Options:
-h, --help Show this screen.
--version Show version.
$ treestats analyze ~/Music | sort -nrk3 | head -n 3
5654 files, 25.19 GiB analyzed [00:00:02]
ogg 2999 15536178965
mp3 1922 10386533620
wma 85 394384068
The output columns are extension, count, total size (in bytes). Files that do not have an extension, or the extension of which is not valid UTF-8 are grouped under “other”.
Run cargo build --release
in your working copy.
Contributions are welcome through GitHub pull requests.
Please report bugs and feature requests on GitHub issues.
treestats is copyright (C) 2022 Jérémie Roquet jroquet@arkanosis.net and licensed under the ISC license.