fn validate_path_common(
mtree_path: impl AsRef<Path>,
mtree_time: i64,
mtree_uid: u32,
mtree_gid: u32,
mtree_mode: &str,
path: impl AsRef<Path>,
metadata: &Metadata,
) -> Vec<PathValidationError>Expand description
Validates common path features against relevant Mtree data.
Returns a list of zero or more PathValidationErrors.
Checks that
mtree_timematches the modification time available inmetadata,mtree_uidmatches the UID available in themetadata,mtree_gidmatches the GID available in themetadata,- and the mode available in
metadataends inmtree_mode.