MCPcopy Index your code
hub / github.com/cauebs/durt

github.com/cauebs/durt @v1.0.3

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.0.3 ↗ · + Follow
8 symbols 13 edges 3 files 1 documented · 12%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

durt

durt

Command line tool for calculating the size of files and directories

Installation

~ $ cargo install durt

Usage

USAGE:
    durt [FLAGS] [OPTIONS] [paths]...

ARGS:
    <paths>...    Paths to files or directories. Use wildcards for recursion

FLAGS:
    -b, --binary        Use binary prefixes (Ki, Mi, Gi, etc.) instead of decimal
    -P, --percentage    Show each entry's percentage relative to the total
    -t, --total         Print the sum of all sizes at the end
    -s, --sort          Print entries in ascending order of size
    -p, --by-path       Sort by path instead of by size
    -r, --reverse       Reverse the order of the entries
    -f, --same-fs       Ignore entries from filesystems different from that of the first path passed
    -h, --help          Prints help information
    -V, --version       Prints version information

OPTIONS:
    -m, --min <minimum-percentage>    Omit entries with size less than this

At this time --same-fs is not available on Windows.

Example

~/durt $ durt -st *
       534 B  Cargo.toml
     1.24 kB  README.md
    11.49 kB  Cargo.lock
    35.15 kB  LICENSE
    56.01 kB  src
   173.56 MB  target
   ---------
   173.66 MB

Extension points exported contracts — how you extend this code

ResultExt (Interface)
(no doc) [1 implementers]
src/lib.rs

Core symbols most depended-on inside this repo

log_err
called by 3
src/lib.rs
log_err
called by 2
src/lib.rs
format_size
called by 2
src/lib.rs
main
called by 0
src/main.rs
from_path
called by 0
src/lib.rs

Shape

Function 3
Class 2
Method 2
Interface 1

Languages

Rust100%

Modules by API surface

src/lib.rs6 symbols
src/main.rs1 symbols
src/cli.rs1 symbols

For agents

$ claude mcp add durt \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact