setOwner

inline fun Path.setOwner(value: UserPrincipal): Path(source)

Sets the file owner to the specified value.

Since Kotlin

1.5

See also

Throws

if the associated file system does not support the FileOwnerAttributeView.