set_permissions_nofollow

Function set_permissions_nofollow 

Source
pub fn set_permissions_nofollow<P>(
    path: P,
    perm: Permissions,
) -> Result<(), Error>
where P: AsRef<Path>,
🔬This is a nightly-only experimental API. (set_permissions_nofollow)
Expand description

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.