pub fn path_has_trailing_slash(path: &Path) -> bool
Checks if a path string ends with a directory terminator (/, \, /., or \.).
/
\
/.
\.