# treestats [](https://crates.io/crates/treestats) [](/LICENSE)
**treestats** is a simple tool to compute the count and the total size of each file extension in a directory tree.
## Usage
```
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.
```
## Example
```console