Skip to main content

metadata_differs_from_entry

Function metadata_differs_from_entry 

Source
pub fn metadata_differs_from_entry(
    entry: &StatEntry,
    metadata: &Metadata,
    index_seconds: u32,
) -> Option<String>
Expand description

What: The reason a file whose metadata is metadata differs from its index entry, or nothing when the two agree. Why: Callers that rely on the stat data alone (the snapshot and clone rungs) treat a file the data cannot vouch for like a file that changed.

In TS you’d write (pseudocode):

function metadataDiffersFromEntry(entry: StatEntry, metadata: Stats, indexSeconds: number): string | undefined;