Merge pull request #4351 from kenny-y-dev/human-readable-ls

Add --human-readable to ls and find output
This commit is contained in:
Michael Eischer
2023-07-16 11:44:41 +00:00
committed by GitHub
5 changed files with 100 additions and 13 deletions

View File

@@ -0,0 +1,13 @@
Enhancement: Add `--human-readable` flag to `ls` and `find` commands
Previously, when using the -l option with the ls and find commands,
the displayed size was always in bytes, without an option for a more
human readable format such as MiB or GiB.
The new `--human-readable` option will convert longer size values into
more human friendly values with an appropriate suffix depending on the
output size. For example, a size of `14680064` will be shown as
`14.000 MiB`.
https://github.com/restic/restic/issues/4159
https://github.com/restic/restic/pull/4351