NewFile
Options for creating a new file.
struct NewFile
Options for creating a new file.
struct NewFile
import _NIOFileSystem
A file system library for Swift.
enum OpenOptions
Options for opening file handles.
struct Directory
Options for opening a directory.
enum ExistingFile
Options for opening an existing 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
A thread-safe type whose values can be shared across arbitrary concurrent contexts without introducing a risk of data races. Values of the type may have no shared mutable state, or they may protect that state with a lock or by forcing it to only be accessed from a specific actor.
init(permissions: FilePermissions? = nil, transactionalCreation: Bool = true)
var permissions: FilePermissions?
The permissions to apply to the new file. nil
implies default permissions should be applied.
var transactionalCreation: Bool
Whether the file should be created and updated as a single transaction, if applicable.
static func != (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether two values are not equal.