Contents

symlink

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

Declaration

static var symlink: FileDescriptor.OpenOptions { get }

Mentioned in

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