Skip to main content

format_size

Function format_size 

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

Format a byte count using SI-style decimal suffixes (KB, MB, GB).

Uses 1024-based thresholds with decimal suffixes for display consistency with common filesystem tools (ls, du, df).