Add store path getter

This commit is contained in:
Matthias Beyer 2016-01-29 16:50:39 +01:00
parent 7fec8a1b23
commit ddd54e03ad

View file

@ -241,6 +241,11 @@ impl Store {
.unwrap_or(false)
// we return false, as fs::canonicalize() returns an Err(..) on filesystem errors
}
/// Gets the path where this store is on the disk
pub fn path(&self) -> &PathBuf {
&self.location
}
}
impl Drop for Store {