Required Instance Methodswift-nio 2.81.0_NIOFileSystem

openFile(forWritingAt:options:)

Opens the file at path for writing and returns a handle to it.

FileSystemProtocol.swift:58
iOS
13.0+
macOS
10.15+
tvOS
13.0+
watchOS
6.0+
func openFile(forWritingAt path: FilePath, options: OpenOptions.Write) async throws -> WriteFileHandle

Parameters

path

The path of the file to open relative to the open file.

options

How the file should be opened.

Returns

A writable handle to the opened file.