For API such as https://docs.rs/glob/latest/glob/struct.Pattern.html#method.matches_path, take a more general `AsRef<Path>` rather than `Path`. We may even want to take `AsRef<OsStr>`, which would allow combining the `&str` and `&Path` API