Skip to content

stchris/sumdir

Repository files navigation

sumdir

summarize + dir = sumdir

Scans a folder and outputs statistics in terms of file types and counts.

Installation

$ brew install stchris/formulae/sumdir

or

$ curl --proto '=https' --tlsv1.2 -LsSf https://github.com/stchris/sumdir/releases/download/v0.4.0/sumdir-installer.sh | sh

or check the Releases page.

Usage

summarize a directory by file type frequency

Usage: sumdir [OPTIONS] <TARGET>

Arguments:
  <TARGET>  

Options:
  -v, --verbose          
  -o, --output <OUTPUT>  [default: text] [possible values: text, csv, json, ftm]
  -m, --mime             
  -p, --progress-bar     
  -h, --help             Print help
  -V, --version          Print version

Example output

$ sumdir -m testdata/

31 files, 5 folders, 4.39 KiB
application/octet-stream: 9
application/zip: 4
application/x-ole-storage: 2
application/gzip: 1
application/pdf: 1
application/x-7z-compressed: 1
application/x-tar: 1
audio/mpeg: 1
audio/ogg: 1
audio/x-flac: 1
audio/x-wav: 1
image/bmp: 1
image/gif: 1
image/jpeg: 1
image/png: 1
image/tiff: 1
image/vnd.microsoft.icon: 1
image/webp: 1
text/xml: 1

Releasing

This project uses cargo-dist for releases and git-cliff for changelog generation.

Prerequisites

cargo install cargo-release git-cliff

Making a Release

cargo release --no-publish {patch,minor,major}

About

summarize the contents of a folder

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors