Bugfix: Use StoreId::from_full_path()

The rationale is that the walker implementation yields the complete path
rather than the local part.

This patch fixes this issue by using StoreId::from_full_path() rather
than StoreId::new().
This commit is contained in:
Matthias Beyer 2017-06-20 20:32:22 +02:00
parent cac3e6114e
commit de3b244a62
1 changed files with 1 additions and 1 deletions

View File

@ -115,7 +115,7 @@ impl Iterator for Walk {
} else /* if next.file_type().is_file() */ { } else /* if next.file_type().is_file() */ {
debug!("Found file..."); debug!("Found file...");
let n = next.path().to_path_buf(); let n = next.path().to_path_buf();
let sid = match StoreId::new(Some(self.store_path.clone()), n) { let sid = match StoreId::from_full_path(&self.store_path, n) {
Err(e) => { Err(e) => {
debug!("Could not construct StoreId object from it"); debug!("Could not construct StoreId object from it");
trace_error(&e); trace_error(&e);