---
title: symlink
framework: system
role: symbol
role_heading: Type Property
path: system/filedescriptor/openoptions/symlink
---

# symlink

Indicates that opening the file opens symbolic links instead of following them.

## Declaration

```swift
static var symlink: FileDescriptor.OpenOptions { get }
```

## Mentioned in

Adopting Swift File Options

## Discussion

Discussion If you specify this option and the file path you pass to doc:FileDescriptor/open(_:_:options:permissions:retryOnInterrupt:)-2266j is a symbolic link, then the link itself is opened instead of what it links to. The corresponding C constant is O_SYMLINK.

## See Also

### Specifying Options

- [append](system/filedescriptor/openoptions/append.md)
- [closeOnExec](system/filedescriptor/openoptions/closeonexec.md)
- [create](system/filedescriptor/openoptions/create.md)
- [eventOnly](system/filedescriptor/openoptions/eventonly.md)
- [exclusiveCreate](system/filedescriptor/openoptions/exclusivecreate.md)
- [exclusiveLock](system/filedescriptor/openoptions/exclusivelock.md)
- [noFollow](system/filedescriptor/openoptions/nofollow.md)
- [nonBlocking](system/filedescriptor/openoptions/nonblocking.md)
- [sharedLock](system/filedescriptor/openoptions/sharedlock.md)
- [truncate](system/filedescriptor/openoptions/truncate.md)
