path_equivalent_for_tar

Function path_equivalent_for_tar 

Source
pub(crate) fn path_equivalent_for_tar(
    a: impl AsRef<Utf8Path>,
    b: impl AsRef<Utf8Path>,
) -> bool
Expand description

Given two paths, which may be absolute (starting with /) or start with ./, return true if they are equal after removing those prefixes. This is effectively “would these paths be equal” when processed as a tar entry.