Struct duplicate_kriller::Scanner
[−]
[src]
pub struct Scanner { pub settings: Settings, // some fields omitted }
Fields
settings: Settings
Methods
impl Scanner
[src]
fn new() -> Self
fn exclude(&mut self, exclude: Vec<String>)
fn set_listener(&mut self, listener: Box<ScanListener>)
Set the scan listener. Caution: This overrides previously set listeners! Use a multiplexing listener if multiple listeners are required.
fn scan<P: AsRef<Path>>(&mut self, path: P) -> Result<()>
Scan any file or directory for dupes. Dedupe is done within the path as well as against all previously added paths.
fn enqueue<P: AsRef<Path>>(&mut self, path: P) -> Result<()>
fn flush(&mut self) -> Result<()>
Drains the queue of directories to scan