Skip to main content

dir_size

Function dir_size 

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

Total bytes under path, without following symlinks.

A symlinked directory counts as the link itself, not its contents: mutable worktrees are real directories, and following an accidental link into a clone of the repository would count the same bytes twice.