https://github.com/integral-tech/dir-size
Parallelized directory size calculation
https://github.com/integral-tech/dir-size
directory rust size size-calculation
Last synced: 5 months ago
JSON representation
Parallelized directory size calculation
- Host: GitHub
- URL: https://github.com/integral-tech/dir-size
- Owner: Integral-Tech
- License: other
- Created: 2024-11-25T18:23:19.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-07-22T03:25:48.000Z (11 months ago)
- Last Synced: 2026-01-15T08:37:55.837Z (5 months ago)
- Topics: directory, rust, size, size-calculation
- Language: Rust
- Homepage: https://crates.io/crates/dir-size
- Size: 23.4 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
# dir-size
[](https://ci.codeberg.org/repos/13933)
`dir-size` is a crate that calculates directory size in parallel using `rayon`.
## Usage
This is a little code sample:
```rust
use dir_size::{get_size_in_bytes, get_size_in_human_bytes, get_size_in_abbr_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)?);
println!("{}", get_size_in_abbr_human_bytes(path)?);
Ok(())
}
```