Skip to main content

stat

Function stat 

Source
pub fn stat(volume: &[u8], cnid: u32) -> Option<HfsStat>
Expand description

Look up the HfsStat of a catalog entry by CNID, walking the catalog B-tree to its file/folder record. Returns the entry’s kind, data-fork logical size (0 for a folder), and its three HFS+ MAC timestamps (raw, unconverted).

volume must contain the whole HFS+ volume from its first byte (header at offset 1024). Returns None if this is not an HFS+ volume or no file/folder record with cnid exists (thread records carry no times and are skipped).