Instance Propertyswift-nio 2.81.0_NIOFileSystem
closeOnExec
Marks the descriptor of the opened file as ‘close-on-exec’.
var closeOnExec: Bool
Marks the descriptor of the opened file as ‘close-on-exec’.
var closeOnExec: Bool
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.
@frozen struct Bool
A value type whose instances are either true
or false
.
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 existingFile: OpenOptions.ExistingFile
The behavior for opening an existing file.
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 }