Required Instance Methodswift-nio 2.81.0_NIOFileSystem

openFile(forReadingAndWritingAt:options:)

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

FileHandleProtocol.swift:611
iOS
13.0+
macOS
10.15+
tvOS
13.0+
watchOS
6.0+
func openFile(forReadingAndWritingAt path: FilePath, options: OpenOptions.Write) async throws -> ReadWriteFileHandle

Parameters

path

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

options

How the file should be opened.

If path is a relative path then it is opened relative to the handle.