A small utility in rust to find the largest files and directories for a given path
You need to have rust & cargo installed - See rustup.rs.
cargo install --git https://github.com/bes/large-file-finder
Given a directory structure like this
% eza -lT
.
├── big_file
23G │ └── big_file.dat
└── small_file
71M └── small_file.dat
We can run lff
to find the largest directories
% lff .
21 GiB d .
21 GiB d ./big_file
21 GiB f ./big_file/big_file.dat
Total size: 21 GiB
Largest child: 21 GiB
% lff --help
Large file finder 0.2.0
USAGE:
lff [OPTIONS] <DIRECTORY>
FLAGS:
-h, --help
Prints help information
-V, --version
Prints version information
OPTIONS:
-i, --ignore <ignore>
Respects ignore files when true, counts all files when false (default). [env: IGNORE=] [default: false]
-p, --percent <percent>
Show all files and directories that are larger than X% of the largest found file. [env: PERCENT=] [default:
50]
ARGS:
<DIRECTORY>
The directory to scan for files and directories