1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-08-02 05:57:46 +00:00

ls,uucore: extract display human_readable() helper from ls

This commit extract the `display_size()` helper from `ls` into
`uucore` as `human_readable` to be similar to the gnulib helper
so that the human readable display of sizes can be shared between
ls, du, df.
This commit is contained in:
Michael Vogt 2024-04-01 20:57:22 +02:00 committed by Daniel Hofstetter
parent eacf53d010
commit d07fb73630
5 changed files with 68 additions and 39 deletions

1
Cargo.lock generated
View file

@ -3325,6 +3325,7 @@ dependencies = [
"md-5",
"memchr",
"nix",
"number_prefix",
"once_cell",
"os_display",
"sha1",