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