Struct dir_signature::ScannerConfig [] [src]

pub struct ScannerConfig { /* fields omitted */ }

Scanner config contains a list of directories you will scan and other settings that influence filesystem scanning

Methods

impl ScannerConfig
[src]

Create an empty scanner config with defaults

By default we use sha512/256 hasher as it increases interoperability, but consider using blake2b/256 as it 25% faster

Use different hash type

Set number of threads to use for scanning

Default is 1 which means don't create additional threads run scanning in current one

Set number of index entries that can be queued in the background

It only makes sense if threads > 0 and you may need to tweak it only in very memory constraint situations

Default is some value proportional to the number of threads.

Add a directory to the index

prefix should either be / or a subdirectory where indexed files will be placed

Enable printing progress to stderr