pub fn categorize(path: &Utf8Path) -> UnknownPathType {
    let path = Utf8PathBuf::try_from(path_clean::clean(path))
        .expect("path cleaning should preserve UTF-8");
    if path.is_absolute() {
        UnknownPathType::Absolute(AbsoluteSystemPathBuf(path))
    } else {
        UnknownPathType::Anchored(AnchoredSystemPathBuf(path))
    }
}
Categorizes a path as either an `AbsoluteSystemPathBuf` or
an `AnchoredSystemPathBuf` depending on whether it
is absolute or relative.
crates/turborepo-paths/src/lib.rs