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]

[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

[src]

Use different hash type

[src]

Set number of threads to use for scanning

Default is 0 which means don't create additional threads and do hashing and directory scanning in current thread. Otherwise we will create num threads for hashing and will use current thread for scanning directories and priting progress.

This parameter is ignored if "threads" feature is disabled

[src]

Set number of threads to the number of CPU cores on the system

This method does nothing if "threads" feature is disabled

[src]

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.

[src]

Add a directory to the index

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

[src]

Enable printing progress to stderr