Function set_permissions_nofollow
fn set_permissions_nofollow<P: AsRef<crate::path::Path>>(path: P, perm: Permissions) -> io::Result<()>
Set the permissions of a file, unless it is a symlink.
Note that the non-final path elements are allowed to be symlinks.
Platform-specific behavior
Currently unimplemented on Windows.
On Unix platforms, this results in a FilesystemLoop error if the last element is a symlink.
This behavior may change in the future.