Skip to content

EricFrancis12/ds

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Directory Stats (ds)

A simple command-line utility written in Rust that displays the sizes of files and directories using horizontal bar charts.

It allows sorting by file name, size, or type.

Features

📁 Recursively calculates sizes of files and directories

🔤 Sort output by file name or file size

📊 Visual ASCII bar chart representation in terminal

Installation

cargo install --git https://github.com/EricFrancis12/ds

Usage

ds [OPTIONS] [DIR]

Arguments

  • [DIR]: (optional) Path to the target directory. Defaults to the current directory.

Options

  • -n, --name: Sort entries alphabetically by name
  • -s, --size: Sort entries by size (largest first)
  • -t, --type: Sort entries by type (directories first, then files)

Example Usage

# Run in current directory (default)
ds

# Analyze a specific directory
ds /path/to/dir

# Sort by name
ds -n /path/to/dir

# Sort by size
ds -s /path/to/dir

# Sort by type
ds -t /path/to/dir

About

Display the sizes of files and directories using horizontal bar charts

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages