← Docs
kotlin-stdlib / kotlin.io.path / java.nio.file.Path / setOwner

setOwner

JVM
JRE7
1.5
fun Path . setOwner ( value : UserPrincipal ) : Path
(source)

Sets the file owner to the specified value .

Exceptions

UnsupportedOperationException - if the associated file system does not support the FileOwnerAttributeView .

See Also

Files.setOwner

Stay in touch:
  • Contributing to Kotlin
  • Releases
  • Press Kit
  • Security
  • Blog
  • Issue Tracker
  • Brand assets
  • Careers
Supported and developed by JetBrains .
Kotlin™ is protected under the Kotlin Foundation
and licensed under the Apache 2 license .