Crates.io | siz |
lib.rs | siz |
version | 0.4.0 |
source | src |
created_at | 2023-12-17 21:08:36.19832 |
updated_at | 2023-12-31 16:43:14.5222 |
description | A versatile, cross-platform command line file size reporting executable with default recursive file system traversal. |
homepage | https://github.com/chrissimpkins/siz |
repository | https://github.com/chrissimpkins/siz |
max_upload_size | |
id | 1072729 |
size | 148,489 |
siz
is a customizable Rust command line file size reporting executable with default recursive file system traversal. It supports a number of optional path filters and sorting features, default smallest-to-largest file size sorting, command line- or .gitignore file-defined glob pattern includes/excludes, human-readable SI metric or binary block size output, and an opinionated set of default path filters.
siz
is built with cross-platform compatibility in mind. Project tests run in the latest macOS, Windows, and Ubuntu Linux GitHub Actions runner environments. The goal is versatile, fast, and multi-platform file size reporting.
ignore
libraryTask | Command |
---|---|
Recursive traversal, byte size sorted small to large | siz [DIR PATH] |
Filter output by .gitignore glob pattern syntax (multi-pattern support) | siz -g '[PATTERN_1],[PATTERN_2],...' [DIR PATH] |
Filter output by file type alias name (multi-alias name support) | siz -t '[TYPE_1],[TYPE_2],...' [DIR PATH] |
Sort largest to smallest size | siz -l [DIR PATH] |
Sort lexicographically by file path names | siz -n [DIR PATH] |
Set maximum directory depth traversal | siz -d 2 [DIR PATH] |
Show hidden dotfiles and dot directory contents | siz -H [DIR PATH] |
Display human-readable file sizes in SI metric block format | siz -m [DIR PATH] |
Display human-readable file sizes in binary block format | siz -m [DIR PATH] |
ANSI coloring of directory vs. file paths | siz -c [DIR PATH] |
See siz --help
for the list of available options.
See siz --list-types
for the list of supported built-in type name aliases.
The minimum supported Rust version is 1.70.0.
Install a Rust toolchain on your system, and then use the cargo package manager to install the siz
executable from the crates.io distribution with:
cargo install siz
Use the same command to install updated crates.io release versions.
Install a Rust toolchain on your system, and then use the cargo package manager to install the siz
executable from the main branch of this source repository with:
cargo install --git https://github.com/chrissimpkins/siz.git
Use the --force
option to force the installation of an updated development version over a previous installation.
The installation provides a new siz
executable on your system PATH. siz
accepts optional arguments and a single required file or directory path positional argument. Define the path at the end of your command. Data are in bytes by default. For directory traversals, the data are in smallest-to-largest size order by default. Several command line options are available to configure file size reports, including filtering, sorting, human-readable file size formatting, and ANSI color-coding paths. Please refer to the siz --help
documentation for additional details on the options available in your commands.
Please see CHANGELOG.md for changes across release versions.
Please use the GitHub issue tracker to report bugs or other issues. Thanks!
Please see CONTRIBUTING.md.
Apache License, v2.0, unless otherwise specified.
Please be kind and constructive. Review our Code of Conduct before interacting on this repository.
siz
development. A huge thanks to Andrew Gallant (@BurntSushi) and all contributors to the ignore
project for their excellent work!