scullionw / dirstat-rs

(fastest?) disk usage cli, similar to windirstat.
MIT License
157 stars 11 forks source link

Support output in gibibytes (aka binary prefixes) #6

Open Mart-Bogdan opened 2 years ago

Mart-Bogdan commented 2 years ago

Currently, app outputs in weird metric giga-bytes.

Would be cool to have a config switch for binary output, like the one you get with du -h. The powers of 1024, not powers of 1000.

example:

$ du -h
5.2G    .
>ds

Analysing: F:\kek
└── 100.00% [5.56 GB] ── kek

P.S. in UNIX it's common to use notion of G M K for such numbers and GB MB KB for metric ones.

GiB, MiB, KiB is also acceptable for output of powers of 1024.