Instance Propertyswift-nio 2.84.0_NIOFileSystem
existingFile
The behavior for opening an existing file.
var existingFile: OpenOptions.ExistingFile
The behavior for opening an existing file.
var existingFile: OpenOptions.ExistingFile
s14_NIOFileSystem11OpenOptionsO5WriteV12existingFileAC08ExistingG0Ovp
What are these?5LRSZ
import _NIOFileSystem
A file system library for Swift.
struct Write
Options for opening a file for writing (or reading and writing).
enum OpenOptions
Options for opening file handles.
enum ExistingFile
Options for opening an existing file.
init(existingFile: OpenOptions.ExistingFile, newFile: OpenOptions.NewFile?, followSymbolicLinks: Bool = true, closeOnExec: Bool = false)
Creates a new set of options for opening a directory.
static func modifyFile(createIfNecessary: Bool, permissions: FilePermissions? = nil) -> OpenOptions.Write
Opens a file for modifying.
static func newFile(replaceExisting: Bool, permissions: FilePermissions? = nil) -> OpenOptions.Write
Create a new file for writing to.
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.
var permissionsForRegularFile: FilePermissions? { get }