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:
parent
cac3e6114e
commit
de3b244a62
1 changed files with 1 additions and 1 deletions
|
@ -115,7 +115,7 @@ impl Iterator for Walk {
|
|||
} else /* if next.file_type().is_file() */ {
|
||||
debug!("Found file...");
|
||||
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) => {
|
||||
debug!("Could not construct StoreId object from it");
|
||||
trace_error(&e);
|
||||
|
|
Loading…
Reference in a new issue