rdu

Crates.iordu
lib.rsrdu
version0.1.0
sourcesrc
created_at2022-03-06 13:51:16.892495
updated_at2022-03-06 13:51:16.892495
descriptionA file/folder size checking program
homepage
repositoryhttps://gitlab.com/DigitalCyan/rdu
max_upload_size
id544502
size46,699
local.interloper (local-interloper)

documentation

README

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

Commit count: 5

cargo fmt