Stay organized with collections
Save and categorize content based on your preferences.
LinkOption
class LinkOption : CopyOption, OpenOption
Defines the options as to how symbolic links are handled.
Summary
Enum values |
Do not follow symbolic links.
|
Enum values
NOFOLLOW_LINKS
enum val NOFOLLOW_LINKS : LinkOption
Do not follow symbolic links.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# LinkOption\n\nAdded in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nLinkOption\n==========\n\n```\nclass LinkOption : CopyOption, OpenOption\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.LinkOption](#)\\\u003e ||\n| | ↳ | [java.nio.file.LinkOption](#) |\n\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known Direct Subclasses [LinkOption.NOFOLLOW_LINKS](#ENUM_VALUE:NOFOLLOW_LINKS) |---------------------------------------------------------|-------------------------------| | [LinkOption.NOFOLLOW_LINKS](#ENUM_VALUE:NOFOLLOW_LINKS) | Do not follow symbolic links. | |\n\nDefines the options as to how symbolic links are handled.\n\nSummary\n-------\n\n| Enum values ||\n|----------------------------------------------------------------------------|---|\n| [NOFOLLOW_LINKS](#ENUM_VALUE:NOFOLLOW_LINKS) Do not follow symbolic links. |\n\nEnum values\n-----------\n\n### NOFOLLOW_LINKS\n\nAdded in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nenum val NOFOLLOW_LINKS : LinkOption\n```\n\nDo not follow symbolic links. \n**See Also**\n\n- [java.nio.file.Files#getFileAttributeView(Path,Class,LinkOption[])](/reference/kotlin/java/nio/file/Files#getFileAttributeView(java.nio.file.Path,%20java.lang.Class,%20java.nio.file.LinkOption))\n- [java.nio.file.SecureDirectoryStream#newByteChannel](/reference/kotlin/java/nio/file/SecureDirectoryStream#newByteChannel(java.nio.file.SecureDirectoryStream.T,%20kotlin.collections.MutableSet,%20java.nio.file.attribute.FileAttribute))"]]