improve error management and interaction with object
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user