Skip to main content

find_omne_root

Function find_omne_root 

Source
pub fn find_omne_root(start: &Path) -> Option<PathBuf>
Expand description

Walk up from start looking for an ancestor that contains a .omne/ subdirectory. Returns the first match, or None when the walk reaches the filesystem root without finding one.

start is canonicalized first so relative paths, .. segments, and symlinks are resolved before the walk begins. If start does not exist or cannot be canonicalized, the function returns None — the caller surfaces this as CliError::NotAVolume at the command boundary.