[][src]Function bdrck::fs::set_permissions_mode

pub fn set_permissions_mode<P: AsRef<Path>>(path: P, mode: u32) -> Result<()>

Set the permissions mode for the given file or directory. This is roughly equivalent to chmod(2) on Linux. Note that UNIX-style systems do not support changing mode for a symlink itself, so this function always follows symlinks (see man 2 fchmodat for details).