pub fn is_selector_by_location(
    raw_selector: &str,
) -> Option<Result<AnchoredSystemPathBuf, InvalidSelectorError>> {
    let exact_matches = [".", ".."];
    let prefixes = ["./", ".\\", "../", "..\\"];

    if exact_matches.contains(&raw_selector)
        || prefixes
            .iter()
            .any(|prefix| raw_selector.starts_with(prefix))
    {
        let cleaned_selector = path_clean::clean(std::path::Path::new(raw_selector))
            .into_os_string()
            .into_string()
            .expect("raw selector was valid utf8");
        Some(
            AnchoredSystemPathBuf::try_from(cleaned_selector.as_str())
                .map_err(|_| InvalidSelectorError::InvalidAnchoredPath(raw_selector.to_string())),
        )
    } else {
        None
    }
}
checks if the selector is a filesystem path
crates/turborepo-lib/src/run/scope/target_selector.rs