Struct dirinfo::DirInfo

source ·
pub struct DirInfo { /* private fields */ }

Implementations

Create a new empty DirInfo struct

Populate DirInfo fields with directory information pulled with root_dir arg directory specifying the root directory to pull from

For all files found in the directory hierarchy, create a histogram of file sizes with the bin size of histogram specified by blocksize arg

Calculate the total file size in bytes for all the files found in directory hierarchy

Calculate the total file size in bytes for all files with file extension of ext arg found in directory hierarchy

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

Calculate the total number of files found in directory hierarchy

Calculate the total number of hidden files found in directory hierarchy

Calculate the total number of sub directories found in directory hierarchy

Calculate the total number of hidden sub directories found in the directory hierarchy

Calculate the total number of symbolic links found in the directory hierarchy

Identify maximum depth of directory hierarchy

Calculate distribution of number of files by depth level in directory hierarchy

Calculate distribution of number of sub directories by depth level in directory hierarchy

Calculate distribution of number of symbolic links by depth level in directory hierarchy

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

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.