Skip to main content

stat_changed

Function stat_changed 

Source
pub fn stat_changed(
    b: &BaselineEntry,
    size: u64,
    mtime: i64,
    nanos: u32,
    mode: u32,
) -> bool
Expand description

Whether a file’s stat differs from its baseline stamp. Size and seconds always; nanoseconds and permission bits only when the baseline recorded them — a baseline written before either was stamped has None, and comparing against a missing value would re-upload every file once. The permission bits are here because a chmod moves only ctime: without them chmod +x was never published, and no checkout ever saw it. mode is the full st_mode.