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
path: PathBuf
Methods
impl Walk
[src]
fn print_dir(w: Walk, total: Arc<AtomicU64>)
function to make output from a 'Walk', using one thread. It also takes an 'Arc
fn set_depth(&mut self, d: u8)
set the maximum depth to display
fn set_regex(&mut self, r: Regex)
set the regex for excludes
fn set_threshold(&mut self, n: u64)
set the minumum file size
fn with_files(&mut self)
include files when printing
fn blocks(&mut self)
include files when printing
fn artifacts_only(&mut self)
include files when printing
fn new(p: PathBuf, n: usize) -> Walk
Create a new 'Walk' from a 'PathBuf' and the number of processor cores to be used.
fn push_subdir(
w: &Walk,
worker: &mut Worker<Status<Walk>>,
total: Arc<AtomicU64>
)
w: &Walk,
worker: &mut Worker<Status<Walk>>,
total: Arc<AtomicU64>
)
This takes a 'Walk' and a 'Worker