Instance Propertyswift-nio 2.72.0_NIOFileSystem
existingFile
The behavior for opening an existing file.
OpenOptions.swift:79var existingFile: OpenOptions.ExistingFile
Other members in extension
Type members
init(existingFile: OpenOptions.ExistingFile, newFile: OpenOptions.NewFile?, followSymbolicLinks: Bool, closeOnExec: Bool
) Creates a new set of options for opening a directory.
static func modifyFile(createIfNecessary: Bool, permissions: FilePermissions?
) -> OpenOptions.Write Opens a file for modifying.
static func newFile(replaceExisting: Bool, permissions: FilePermissions?
) -> OpenOptions.Write Create a new file for writing to.
Instance members
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.var newFile: OpenOptions.NewFile?
The creation options for a new file, if one should be created.
nil
means that no file should be created.