Required Instance Methodswift-nio 2.72.0_NIOFileSystem

    openFile(forWritingAt:options:)

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

    FileHandleProtocol.swift:594
    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 write-only handle to the opened file.

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

    See also

    Other requirements

    Type members

    Instance members