Add store path getter
This commit is contained in:
parent
7fec8a1b23
commit
ddd54e03ad
1 changed files with 5 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue