improve error management and interaction with object

This commit is contained in:
grimhilt
2023-06-07 17:23:27 +02:00
parent c5abc57e9a
commit 3f441dd22b
3 changed files with 57 additions and 19 deletions

View File

@@ -38,3 +38,12 @@ pub fn nextsync_root() -> Option<PathBuf> {
};
root
}
pub fn objects() -> Option<PathBuf> {
if let Some(mut path) = nextsync_root() {
path.push(".nextsync");
path.push("objects");
return Some(path);
}
None
}