Last 12 weeks · 0 commits
2 of 6 standards met
Summary Add / flag that includes the measured directory path alongside the size in the output Useful when diskus is used in scripts or when measuring multiple paths to correlate sizes with directories Fixes #41 Test plan Flag compiles and produces output with path prepended Without flag, output remains unchanged (backward compatible)
Hey, I found this rather old discussion here and wanted to provide here a solution. Since most people (including me) seem to rather look for a replacement of instead of implicitly aggregating those, I added a functionality, which makes this behavior configurable. The default behavior now considers all provided path-arguments independently. I did not dive into optimizing the workload across different workers, so paths are just worked on sequentially, but while doing so, parallelized.
Available since Rust 1.70: https://doc.rust-lang.org/std/io/trait.IsTerminal.html#tymethod.is_terminal This change is useful because: it removes a now-unnecessary dependency the crate is unmaintained, https://rustsec.org/advisories/RUSTSEC-2024-0375.html the crate is potentially unsound on Windows, https://rustsec.org/advisories/RUSTSEC-2021-0145.html
Repository: sharkdp/diskus. Description: A minimal, fast alternative to 'du -sh' Stars: 1227, Forks: 44. Primary language: Rust. Languages: Rust (100%). License: Apache-2.0. Topics: cli, command-line, filesystem, rust, tool. Latest release: v0.9.0 (6mo ago). Open PRs: 5, open issues: 8. Last activity: 4mo ago. Community health: 42%. Top contributors: sharkdp, amilajack, musicinmybrain, heimskr, SergeyKasmy, arunsathiya, Crestwave, polyzen, fawick, Fierthraix and others.