Function validate_path_common

Source
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_time matches the modification time available in metadata,
  • mtree_uid matches the UID available in the metadata,
  • mtree_gid matches the GID available in the metadata,
  • and the mode available in metadata ends in mtree_mode.