Function btlib_tests::fs_queries::disk_usage
source · pub fn disk_usage<P: AsRef<Path>>(path: P) -> Result<u64>
Expand description
Recursively sums up the length of each file stored under the given path and returns the total. Note that if the given path contains hard links, the disk usage for the hard linked file will be counted multiple times, once for each link.