pub fn without_trailing_separators(path: &Path) -> PathBufExpand description
Strip trailing path separators from a root operand. A trailing slash forces the OS to resolve
the final component as a directory, which would dereference a symlink root like link/
(following it to its target). Stripping makes link/ behave like link (the symlink itself),
which is then classified/operated on O_NOFOLLOW relative to its parent fd.