Directory
Options for opening a directory.
struct Directory
Options for opening a directory.
struct Directory
import _NIOFileSystem
A file system library for Swift.
enum OpenOptions
Options for opening file handles.
enum ExistingFile
Options for opening an existing file.
struct NewFile
Options for creating a new file.
struct Read
Options for opening a file for reading.
struct Write
Options for opening a file for writing (or reading and writing).
protocol Equatable
A type that can be compared for value equality.
protocol Hashable : Equatable
A type that can be hashed into a Hasher
to produce an integer hash value.
protocol Sendable
init(followSymbolicLinks: Bool = true, closeOnExec: Bool = false)
Creates a new set of options for opening a directory.
var closeOnExec: Bool
Marks the descriptor of the opened file as ‘close-on-exec’.
var followSymbolicLinks: Bool
If the last path component is a symbolic link then this flag determines whether the link is followed. If false
and the last path component is a symbolic link then an error is thrown.
static func != (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether two values are not equal.