getUser

Returns the permissions the owner of the file has for the file/directory.

The returned object is live, modifying it will change the user's permissions.

For further details on permissions see ConfigurableUserClassFilePermissions.