1 unstable release

0.1.0 Mar 6, 2022

#41 in #filesize

GPL-3.0-only

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

  1. Make sure you have cargo installed
  2. Clone the repo
  3. cd into the repo
  4. Do: cargo build --release
  5. 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
~26K SLoC