init(path:)

    Open a new NIOFileHandle. This operation is blocking.

    FileHandle.swift:185
    convenience init(path: String) throws

    Parameters

    path

    The path of the file to open. The ownership of the file descriptor is transferred to this NIOFileHandle and so it will be closed once close is called.

    Other members in extension

    Types

    • struct Flags

      Flags allows to specify additional flags to Mode, such as permission for file creation.

    • struct Mode

      Mode represents file access modes.

    Type members

    Instance members