Trimming of stuff to get into the snapshotting mood

This commit is contained in:
Lucien Greathouse
2018-12-12 13:56:11 -08:00
parent ee0a5cada3
commit b732c43274
4 changed files with 52 additions and 68 deletions

View File

@@ -76,9 +76,10 @@ impl Imfs {
if self.is_within_roots(parent_path) && self.get(parent_path).is_none() {
self.path_created(parent_path)?;
}
} else {
ImfsItem::read_from_disk(self, path)?;
}
ImfsItem::read_from_disk(self, path)?;
Ok(())
}
@@ -90,9 +91,10 @@ impl Imfs {
if self.is_within_roots(parent_path) && self.get(parent_path).is_none() {
self.path_created(parent_path)?;
}
} else {
ImfsItem::read_from_disk(self, path)?;
}
ImfsItem::read_from_disk(self, path)?;
Ok(())
}