Instance Methodswift-nio 2.81.0_NIOFileSystem
openFile(forWritingAt:options:)
FileHandle.swift:325- iOS
- 13.0+
- macOS
- 10.15+
- tvOS
- 13.0+
- watchOS
- 6.0+
func openFile(forWritingAt path: FilePath, options: OpenOptions.Write) async throws -> WriteFileHandle
func openFile(forWritingAt path: FilePath, options: OpenOptions.Write) async throws -> WriteFileHandle
s14_NIOFileSystem19DirectoryFileHandleV04openD012forWritingAt7optionsAA05WritedE0V0B7Package0D4PathV_AA11OpenOptionsO0K0VtYaKF
What are these?5IN35
import _NIOFileSystem
A file system library for Swift.
struct DirectoryFileHandle
Implements DirectoryFileHandleProtocol
by making system calls to interact with the local file system.
struct FilePath
Represents a location in the file system.
enum OpenOptions
Options for opening file handles.
struct Write
Options for opening a file for writing (or reading and writing).
struct WriteFileHandle
Implements WritableFileHandleProtocol
by making system calls to interact with the local file system.
let fileHandle: FileHandle
func listContents(recursive: Bool) -> DirectoryEntries
func openDirectory(atPath path: FilePath, options: OpenOptions.Directory) async throws -> DirectoryFileHandle
func openFile(forReadingAndWritingAt path: FilePath, options: OpenOptions.Write) async throws -> ReadWriteFileHandle
func openFile(forReadingAt path: FilePath, options: OpenOptions.Read) async throws -> ReadFileHandle