getPosixFilePermissions

inline fun Path.getPosixFilePermissions(vararg options: LinkOption): Set<PosixFilePermission>

Returns the POSIX file permissions of the file located by this path.

Since Kotlin

1.5

See also

Throws

kotlin.UnsupportedOperationException

if the associated file system does not support the PosixFileAttributeView.