filehisto

command module
v0.0.0-...-550ac6f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 16, 2023 License: MIT Imports: 8 Imported by: 0

README

Filehisto

A simple tool that collects the relationship between modify time and file size in a folder. You may check whehter there are some cold files in your disk with it.

Build

go build -o bin/filehisto

Usage

$ bin/filehisto --path /tmp
statistics for /tmp, total 20287 files
     6854h31m6s ago-    6397h33m36s ago  1.64%      ▍                 91.32MB
    6397h33m36s ago-     5940h36m5s ago  0%         ▏                 
     5940h36m5s ago-    5483h38m35s ago  0%         ▏                 
    5483h38m35s ago-     5026h41m4s ago  0%         ▏                 
     5026h41m4s ago-    4569h43m34s ago  0%         ▏                 
    4569h43m34s ago-     4112h46m3s ago  1.96e-05%  ▏                 1.09kB
     4112h46m3s ago-    3655h48m33s ago  0%         ▏                 
    3655h48m33s ago-     3198h51m2s ago  0%         ▏                 
     3198h51m2s ago-    2741h53m32s ago  0%         ▏                 
    2741h53m32s ago-     2284h56m1s ago  0%         ▏                 
     2284h56m1s ago-    1827h58m31s ago  3.56%      ▊                 198.4MB
    1827h58m31s ago-      1371h1m0s ago  1.45%      ▍                 80.54MB
      1371h1m0s ago-      914h3m30s ago  7.31%      █▋                407.3MB
      914h3m30s ago-      457h5m59s ago  16%        ███▌              891.2MB
      457h5m59s ago-          8m28s ago  70%        ███████████████▏  3.903GB

Acknowledgement

The histrogram part is copied from aybabtme/uniplot, licensed by MIT. I made a little change to it to fit the requirement.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL