alexandrestein / fs-scan

Scan directory and sub directories to display file layout from the size standpoint

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This project has moved to DDNeu and this repository is not maintained anymore.

fs-scan

Scan directory and sub directories to display file layout from the size standpoint.

example animation: https://asciinema.org/a/4ZYguwCBbezdqPLGFs48Lv86n

The package can optionally take a parameter which will be used as base directory. Otherwise the current directory is used.

In the current path:

$ ~/bin/fs-scan 
Files -> 642K (642896)
Directories -> 62K (62645)
Less than 4K -> 377K (377699)
Between 4K and 16K -> 168K (168241)
...

To a specify the path:

$ ~/bin/fs-scan bench-fs/
The path is bench-fs/
Files -> 642K (642896)
Directories -> 62K (62645)
Less than 4K -> 377K (377699)
Between 4K and 16K -> 168K (168241)
...

Export results

Additionally the result is sent to a fs-scan_output.csv. Multiple run can be done from the same directory to collect outputs from multiple directories in a single file.

fs-scan dir1 && fs-scan dir2

CSV files are easy to use and import into spreadsheets.

About

Scan directory and sub directories to display file layout from the size standpoint


Languages

Language:Rust 95.7%Language:Shell 4.3%