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 PathValidationError
s.
Checks that
mtree_time
matches the modification time available inmetadata
,mtree_uid
matches the UID available in themetadata
,mtree_gid
matches the GID available in themetadata
,- and the mode available in
metadata
ends inmtree_mode
.