Skip to main content
← dvs documentation Rust API reference

format_size

Function format_size 

Source
pub fn format_size(bytes: u64) -> String
Expand description

Formats a byte count into a human-readable string (e.g. “10.5 MB”). Uses base-1024 divisors to match ls -h / du -h output.