pub fn verify_path(
path: &[u8],
prot: PathProtection,
is_symlink: bool,
) -> Result<(), Error>Expand description
Verify every /-separated component of path is safe to materialize.
path is a repository-relative slash-separated tree/index path. Each
component is checked with verify_path_component. is_symlink is the
mode of the leaf entry being written and gates the .gitmodules checks,
matching Git’s verify_path().
§Errors
Returns Error::InvalidPath for the first forbidden component.