Contents

directory

Indicates that opening the file only succeeds if the file is a directory.

Declaration

static var directory: FileDescriptor.OpenOptions { get }

Discussion

If you specify this option and the file path you pass to doc:FileDescriptor/open(_:_:options:permissions:retryOnInterrupt:)-2266j is a not a directory, then that open operation fails.

The corresponding C constant is O_DIRECTORY.