pub struct DirInfo { /* private fields */ }
Implementations
sourceimpl DirInfo
impl DirInfo
sourcepub fn pull(self, root_dir: &str) -> DirInfo
pub fn pull(self, root_dir: &str) -> DirInfo
Populate DirInfo fields with directory information pulled with root_dir arg directory specifying the root directory to pull from
sourcepub fn get_file_size_distribution(&self, blocksize: BlockSize) -> Vec<usize>
pub fn get_file_size_distribution(&self, blocksize: BlockSize) -> Vec<usize>
For all files found in the directory hierarchy, create a histogram of file sizes with the bin size of histogram specified by blocksize arg
sourcepub fn get_files_size(&self) -> usize
pub fn get_files_size(&self) -> usize
Calculate the total file size in bytes for all the files found in directory hierarchy
sourcepub fn get_files_size_by_file_ext(&self, ext: &str) -> usize
pub fn get_files_size_by_file_ext(&self, ext: &str) -> usize
Calculate the total file size in bytes for all files with file extension of ext arg found in directory hierarchy
sourcepub fn get_num_files_by_file_ext(&self, ext: &str) -> usize
pub fn get_num_files_by_file_ext(&self, ext: &str) -> usize
Calculate the total number of files with the extension specified by ext arg found in directory hierarchy
Calculate the total file size in bytes for all hidden files found in directory hierarchy
sourcepub fn get_num_files(&self) -> usize
pub fn get_num_files(&self) -> usize
Calculate the total number of files found in directory hierarchy
Calculate the total number of hidden files found in directory hierarchy
sourcepub fn get_num_directories(&self) -> usize
pub fn get_num_directories(&self) -> usize
Calculate the total number of sub directories found in directory hierarchy
Calculate the total number of hidden sub directories found in the directory hierarchy
sourcepub fn get_num_symlinks(&self) -> usize
pub fn get_num_symlinks(&self) -> usize
Calculate the total number of symbolic links found in the directory hierarchy
sourcepub fn get_deepest_depth(&self) -> usize
pub fn get_deepest_depth(&self) -> usize
Identify maximum depth of directory hierarchy
sourcepub fn get_num_files_by_depth(&self) -> Vec<u32>
pub fn get_num_files_by_depth(&self) -> Vec<u32>
Calculate distribution of number of files by depth level in directory hierarchy
sourcepub fn get_num_directories_by_depth(&self) -> Vec<u32>
pub fn get_num_directories_by_depth(&self) -> Vec<u32>
Calculate distribution of number of sub directories by depth level in directory hierarchy
sourcepub fn get_num_symlinks_by_depth(&self) -> Vec<u32>
pub fn get_num_symlinks_by_depth(&self) -> Vec<u32>
Calculate distribution of number of symbolic links by depth level in directory hierarchy
sourcepub fn get_files_size_by_depth(&self) -> Vec<usize>
pub fn get_files_size_by_depth(&self) -> Vec<usize>
Calculate distribution of file size by depth level in directory hierarchy
Calculate distribution of hidden file size by depth level in directory hierarchy
Calculate distribution of number of hidden files by depth level in directory hierarchy