scan_directory

Function scan_directory 

Source
pub fn scan_directory(path: &Path, cache: Option<&DirStat>) -> Result<DirStat>
Expand description

Scan a directory recursively and return statistics

§Arguments

  • path - The directory path to scan
  • cache - Optional cached statistics for this directory

§Returns

Directory statistics including size, file count, and child directories