1 unstable release
0.1.0 | Mar 6, 2022 |
---|
#49 in #filesize
17KB
162 lines
Rusty Disk Usage
About
Rusty Disk Usage is a program that writes the size of a file or a directory to stdout. If you target a file it will write it's size in bytes to stdout. Don't worry, you won't need a calculator, there's a flag to make the output more human readable. If you however target a directory, it will perform a recursive search of the targeted directory and sum up all the files it can find. There's also an option to print out every file individually.
How to compile
- Make sure you have
cargo
installed - Clone the repo
cd
into the repo- Do:
cargo build --release
- Enjoy your binary located in
target/release/rdu
How to use
rdu [OPTIONS] [PATH]
Examples:
These will print the size of a file or a directory in bytes
rdu Programs
rdu file.txt
If you wish to make it more readable pass the --human
or -h
flag like so:
rdu -h file.txt
Current issues:
Does not work with absolute paths for some reason.
Made by DigitalCyan - Licensed under GPLv3
Dependencies
~1.5MB
~27K SLoC