Skip to main content

open_path

Function open_path 

Source
pub fn open_path<R: Read + Seek>(
    reader: &mut R,
    volume: &ApfsVolume,
    path: &str,
    block_size: usize,
) -> Result<Inode>
Expand description

Resolve a /-separated path to an Inode by descending the fs-tree from the root directory (ROOT_DIR_INO_NUM). Empty components (from a leading, trailing, or doubled /) are skipped; "/" resolves to the root inode.

§Errors

crate::ApfsError::OmapUnresolved if any path component is not found or the final inode record is absent (a loud per-item miss), plus the structural errors of list_dir.