Skip to content

A small utility in rust to find the largest files and directories for a given path

Notifications You must be signed in to change notification settings

bes/large-file-finder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

large-file-finder

A small utility in rust to find the largest files and directories for a given path

Install

You need to have rust & cargo installed - See rustup.rs.

cargo install --git https://github.com/bes/large-file-finder

Usage

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

Options

% 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

About

A small utility in rust to find the largest files and directories for a given path

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages