/** * Do the Unix style chmod (change file permission) on a File * * @param file * @param mask * @return true if the function executed successfully * @throws hudson.util.jna.Native.ExecutionError */ public boolean chmod(File file, int mask) throws NativeAccessException { ensureUnixSupport(NativeFunction.CHMOD); return nativeUnixSupport.chmod(file, mask); }