Skip to main content

stat_fields_beneath

Function stat_fields_beneath 

Source
pub fn stat_fields_beneath(root: &File, path: &[u8]) -> Option<StatFields>
Expand description

What: The stat fields of the tracked file path below the held directory root, found through handles, or nothing. Why: The index of a snapshot takes the stat fields of the snapshot’s own files; reading them by a path with several components would follow a link substituted below the root.

In TS you’d write (pseudocode):

function statFieldsBeneath(root: Dir, path: Uint8Array): StatFields | undefined;