Skip to main content

dir_size_bytes

Function dir_size_bytes 

Source
pub fn dir_size_bytes(path: &Path) -> u64
Expand description

Recursively compute the total byte size of a directory.

Counts only regular file sizes (metadata size is excluded). Returns 0 if the directory cannot be read.