Struct itree::options::FsOptions[][src]

pub struct FsOptions<P: AsRef<Path>> {
    pub root: P,
    pub max_depth: Option<usize>,
    pub follow_links: bool,
    pub max_filesize: Option<u64>,
    pub hidden: bool,
    pub only_dirs: bool,
    pub no_ignore: bool,
    pub no_git_exclude: bool,
    pub custom_ignore: Vec<String>,
}

Fields

Methods

impl<P: AsRef<Path>> FsOptions<P>
[src]

Important traits for &'a mut R

Set the root directory from which to build the tree.

Important traits for &'a mut R

Set a maximum depth for the tree to search. None indicates no limit.

None by default.

Set whether or not to follow links.

Disabled by default.

Important traits for &'a mut R

Set a maximum file size to include. None indicates no limit.

None by default.

Important traits for &'a mut R

Set whether or not to ignore hidden files.

Enabled by default.

Important traits for &'a mut R

Set whether or not to consider directories only.

Disabled by default.

Important traits for &'a mut R

Set whether or not to read .[git]ignore files.

Enabled by default.

Important traits for &'a mut R

Set whether or not to read .git/info/exclude files.

Enabled by default.

Important traits for &'a mut R

Add a custom ignore path.

Trait Implementations

impl<P: Debug + AsRef<Path>> Debug for FsOptions<P>
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<P> Send for FsOptions<P> where
    P: Send

impl<P> Sync for FsOptions<P> where
    P: Sync