Crates.io | sizeplz |
lib.rs | sizeplz |
version | 0.0.1 |
source | src |
created_at | 2022-10-25 14:56:59.811229 |
updated_at | 2022-10-25 14:56:59.811229 |
description | A tool to get the size of folders within a directory |
homepage | |
repository | |
max_upload_size | |
id | 696986 |
size | 34,165 |
A simple asynchronous recursive directory summarisation tool written in rust.
USAGE:
sizeplz [FLAGS] [OPTIONS] [PATH]
ARGS:
<PATH> The path to the directory to scan
FLAGS:
-e, --empty Ignore empty directories / files
-f, --files Include the size of files within the output
-h, --help Prints help information
-i, --invert Invert sorted results
-t, --tree Whether the search should show all results.
-V, --version Prints version information
OPTIONS:
-d, --depth <DEPTH> The recessive depth to scan [default: 1]
-r, --round <ROUND> The number of figures to round too. [default: 0]
-s, --sort <sort> How the results should be sorted [possible values: size, name, created,
modified]
-u, --unit <UNIT> The unit of file size to output [possible values: b, kb, mb, gb, tb, pb, auto]
With a depth of 2:
sizeplz --depth 2
Show sizes in GB with 2dp of accuracy.
sizeplz --unit gb --round 2
Sort by sizes from large to small
sizeplz --sort size --invert
. 784 mb
├ .git 66 kb
├ .idea 6 kb
├ src 18 kb
└ target 784 mb
Head over to the releases page and download a binary for your system. Place it in your path to use globaly.
Building from source will require the rust toolchain, which can be installed using rustup
git clone https://github.com/samhdev/sizeplz.git
cd sizeplz
cargo build --release
Binary will be in target/release/