pub fn has_trailing_slash(path: &Path) -> bool
true if the path has a trailing slash, including if it’s the root directory.
true