Stay organized with collections
Save and categorize content based on your preferences.
PosixFilePermission
class PosixFilePermission
Defines the bits for use with the permissions
attribute.
The PosixFilePermissions
class defines methods for manipulating set of permissions.
Summary
Enum values |
Execute/search permission, group.
|
Read permission, group.
|
Write permission, group.
|
Execute/search permission, others.
|
Read permission, others.
|
Write permission, others.
|
Execute/search permission, owner.
|
Read permission, owner.
|
Write permission, owner.
|
Enum values
OTHERS_EXECUTE
enum val OTHERS_EXECUTE : PosixFilePermission
Execute/search permission, others.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# PosixFilePermission\n\nAdded in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nPosixFilePermission\n===================\n\n```\nclass PosixFilePermission\n```\n\n|---|---|--------------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) |||\n| ↳ | [kotlin.Enum](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-enum/index.html)\\\u003c[java.nio.file.attribute.PosixFilePermission](#)\\\u003e ||\n| | ↳ | [java.nio.file.attribute.PosixFilePermission](#) |\n\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known Direct Subclasses [PosixFilePermission.GROUP_EXECUTE](#ENUM_VALUE:GROUP_EXECUTE), [PosixFilePermission.GROUP_READ](#ENUM_VALUE:GROUP_READ), [PosixFilePermission.GROUP_WRITE](#ENUM_VALUE:GROUP_WRITE), [PosixFilePermission.OTHERS_EXECUTE](#ENUM_VALUE:OTHERS_EXECUTE), [PosixFilePermission.OTHERS_READ](#ENUM_VALUE:OTHERS_READ), [PosixFilePermission.OTHERS_WRITE](#ENUM_VALUE:OTHERS_WRITE), [PosixFilePermission.OWNER_EXECUTE](#ENUM_VALUE:OWNER_EXECUTE), [PosixFilePermission.OWNER_READ](#ENUM_VALUE:OWNER_READ), [PosixFilePermission.OWNER_WRITE](#ENUM_VALUE:OWNER_WRITE) |------------------------------------------------------------------|------------------------------------| | [PosixFilePermission.GROUP_EXECUTE](#ENUM_VALUE:GROUP_EXECUTE) | Execute/search permission, group. | | [PosixFilePermission.GROUP_READ](#ENUM_VALUE:GROUP_READ) | Read permission, group. | | [PosixFilePermission.GROUP_WRITE](#ENUM_VALUE:GROUP_WRITE) | Write permission, group. | | [PosixFilePermission.OTHERS_EXECUTE](#ENUM_VALUE:OTHERS_EXECUTE) | Execute/search permission, others. | | [PosixFilePermission.OTHERS_READ](#ENUM_VALUE:OTHERS_READ) | Read permission, others. | | [PosixFilePermission.OTHERS_WRITE](#ENUM_VALUE:OTHERS_WRITE) | Write permission, others. | | [PosixFilePermission.OWNER_EXECUTE](#ENUM_VALUE:OWNER_EXECUTE) | Execute/search permission, owner. | | [PosixFilePermission.OWNER_READ](#ENUM_VALUE:OWNER_READ) | Read permission, owner. | | [PosixFilePermission.OWNER_WRITE](#ENUM_VALUE:OWNER_WRITE) | Write permission, owner. | |\n\nDefines the bits for use with the [permissions](/reference/kotlin/java/nio/file/attribute/PosixFileAttributes#permissions()) attribute.\n\nThe [PosixFilePermissions](/reference/kotlin/java/nio/file/attribute/PosixFilePermissions) class defines methods for manipulating set of permissions.\n\nSummary\n-------\n\n| Enum values ||\n|---------------------------------------------------------------------------------|---|\n| [GROUP_EXECUTE](#ENUM_VALUE:GROUP_EXECUTE) Execute/search permission, group. |\n| [GROUP_READ](#ENUM_VALUE:GROUP_READ) Read permission, group. |\n| [GROUP_WRITE](#ENUM_VALUE:GROUP_WRITE) Write permission, group. |\n| [OTHERS_EXECUTE](#ENUM_VALUE:OTHERS_EXECUTE) Execute/search permission, others. |\n| [OTHERS_READ](#ENUM_VALUE:OTHERS_READ) Read permission, others. |\n| [OTHERS_WRITE](#ENUM_VALUE:OTHERS_WRITE) Write permission, others. |\n| [OWNER_EXECUTE](#ENUM_VALUE:OWNER_EXECUTE) Execute/search permission, owner. |\n| [OWNER_READ](#ENUM_VALUE:OWNER_READ) Read permission, owner. |\n| [OWNER_WRITE](#ENUM_VALUE:OWNER_WRITE) Write permission, owner. |\n\nEnum values\n-----------\n\n### GROUP_EXECUTE\n\nAdded in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val GROUP_EXECUTE : PosixFilePermission\n```\n\nExecute/search permission, group. \n\n### GROUP_READ\n\nAdded in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val GROUP_READ : PosixFilePermission\n```\n\nRead permission, group. \n\n### GROUP_WRITE\n\nAdded in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val GROUP_WRITE : PosixFilePermission\n```\n\nWrite permission, group. \n\n### OTHERS_EXECUTE\n\nAdded in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val OTHERS_EXECUTE : PosixFilePermission\n```\n\nExecute/search permission, others. \n\n### OTHERS_READ\n\nAdded in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val OTHERS_READ : PosixFilePermission\n```\n\nRead permission, others. \n\n### OTHERS_WRITE\n\nAdded in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val OTHERS_WRITE : PosixFilePermission\n```\n\nWrite permission, others. \n\n### OWNER_EXECUTE\n\nAdded in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val OWNER_EXECUTE : PosixFilePermission\n```\n\nExecute/search permission, owner. \n\n### OWNER_READ\n\nAdded in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val OWNER_READ : PosixFilePermission\n```\n\nRead permission, owner. \n\n### OWNER_WRITE\n\nAdded in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val OWNER_WRITE : PosixFilePermission\n```\n\nWrite permission, owner."]]