[][src]Function rsure::update

pub fn update<P: AsRef<Path>>(
    dir: P,
    store: &dyn Store,
    is_update: bool,
    tags: &StoreTags
) -> Result<()>

Perform an update scan, using the given store.

If 'update' is true, use the hashes from a previous run, otherwise perform a fresh scan. Depending on the Store type, the tags may be kept, or ignored.

A simple example:

let mut tags = rsure::StoreTags::new();
tags.insert("name".into(), "sample".into());
let store = rsure::parse_store("2sure.dat.gz")?;
rsure::update(".", &*store, false, &tags)?;