Struct liboskar::walk_parallel::Walk [] [src]

pub struct Walk {
    pub path: PathBuf,
    // some fields omitted
}

The 'Walk' struct contains all the information we need to traverse a directory.

Fields

Methods

impl Walk
[src]

function to make output from a 'Walk', using one thread. It also takes an 'Arc' and will add the relevant directory sizes to it.

set the maximum depth to display

set the regex for excludes

set the minumum file size

include files when printing

include files when printing

include files when printing

Create a new 'Walk' from a 'PathBuf' and the number of processor cores to be used.

This takes a 'Walk' and a 'Worker>' and executes the walk in parallel, creating new work for each subdirectory. It's not the most efficient concurrency imaginable, but it's fast and easy-ish to use. It also takes in an 'Arc', which it updates with any file sizes in the directory.

Trait Implementations

impl Debug for Walk
[src]

Formats the value using the given formatter.