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]

[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.

[src]

set the maximum depth to display

[src]

set the regex for excludes

[src]

set the minumum file size

[src]

include files when printing

[src]

include files when printing

[src]

include files when printing

[src]

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

[src]

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]

[src]

Formats the value using the given formatter.