setOwner
@ExperimentalPathApi fun Path.setOwner(
value: UserPrincipal
): Path
Sets the file owner to the specified value.
Exceptions
UnsupportedOperationException
- if the associated file system does not support the FileOwnerAttributeView.
See Also