Skip to main content

Crate dua

Crate dua 

Source
Expand description

Public library API for dua core traversal and aggregation functionality.

This crate powers the dua binary and can also be used as a library.

Modules§

traverse
Filesystem traversal, in-memory tree representation, and traversal events.

Structs§

Config
Runtime configuration used by interactive and CLI components.
Walk
A directory iterator whose directory reads happen in parallel.
WalkEntry
A filesystem entry produced by walk.
WalkOptions
Configures a filesystem walk, including output and formatting options.
WalkResult
Information we gather during a filesystem walk

Enums§

ByteFormat
Specifies a way to format bytes
WalkOrder
Controls when entries are yielded relative to their descendants.

Functions§

aggregate
Aggregate the given paths and write information about them to out in a human-readable format. If compute_total is set, it will write an additional line with the total size across all given paths. If sort_by_size_in_bytes is set, we will sort all sizes (ascending) before outputting them.
canonicalize_ignore_dirs
Canonicalize user-provided ignore directory paths.
walk
Walk root without following symlinks.