dir-size 0.1.0

Parallelized directory size calculation
Documentation
  • Coverage
  • 66.67%
    2 out of 3 items documented0 out of 3 items with examples
  • Size
  • Source code size: 6.11 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 157.92 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 16s Average build duration of successful builds.
  • all releases: 18s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • Integral-Tech

dir-size

dir-size is a crate that calculates directory size in parallel using rayon.

Usage

This is a little code sample:

use dir_size::{get_size_in_bytes, get_size_in_human_bytes};
use std::{io, path::Path};

fn main() -> io::Result<()> {
    let path = Path::new("/home");
    println!("{} bytes", get_size_in_bytes(path)?);
    println!("{}", get_size_in_human_bytes(path)?);
    Ok(())
}