Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Contributors

Languages

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /