#disk #size #hard-drive #rust-disk-analyze

app DiskAnalyzer

make diagram base on system folder size

9 releases (3 stable)

1.1.1 Sep 8, 2024
1.0.1 May 16, 2024
0.2.2 Apr 24, 2024
0.1.2 Apr 23, 2024

#115 in Filesystem

Download history 40/week @ 2024-07-27 142/week @ 2024-09-07 25/week @ 2024-09-14 30/week @ 2024-09-21 16/week @ 2024-09-28 3/week @ 2024-10-05 1/week @ 2024-10-12 4/week @ 2024-11-02

543 downloads per month

MIT/Apache

150KB
995 lines

DiskAnalyzer

Description

Check Folder Size And Create Diagram Based On Their Size And Set Color (Green For Less Then 1 Giga bytes , Yellow For 1 To 10 Giga bytes And Red For More)

image description image description image description

Note:

  • Project May Not Work On Some Of System Folders Due To Lack Of Permissions (Access Denied)
  • This Project Works On Windows And Linux Only
  • Args Are Case-Insensetive

How To Use :


get information about size of folders in each drive

Usage: diska [OPTIONS]

Options:
      --depth <depth>      how many level of inner directories should it scan
      --diagram <diagram>  Set Diagram Types : tree , table , media_type
  -s, --sort <sort>        Sort Folders Based On Given Value : size , name

      --st <st>            Can Use By sort
                           Sort Folders:  Desc or Asc
  -p, --path <path>        analyze give path (default is current directory)
  -h, --help               Print help
  -V, --version            Print version


Exmaple :


Pie Chart: Shows Hom Much Space Is Taken By  Media Types (Video , Image , Audio,File)
Command Sample: 

      diska  --diagram media_type -d C
  
Tree Chart :  Show Hom Much Space Is Taken By  Directories.
Command Sample: 

      diska  --diagram tree -p "C:\" -s size --st asc --depth 3

Above Example Shows A Diagram Of Directories Size And Their Structure From Given Path And In Depth Of 3 (Explore 3 Level Of Inner Directories)
And Also Sorts Folders By Their Size.

How To Install :

Download And Install Cargo (Rust Package Manager)
Run Following Command in Terminal
cargo install DiskAnalyzer

ToDO List :

  • Add Depth For Folder Crawler
  • Add More Diagrams
  • Add Mac Support (Currently It Supports Windows And Linux)
  • Implement Sorting
  • Handle Files In Terminal (Add Move , etc)
  • List File Types (Audio , Video , etc)

Dependencies

~3–11MB
~96K SLoC