init(_deprecatedPath:mode:flags:)

Open a new NIOFileHandle. This operation is blocking.

FileHandle.swift:391
convenience init(_deprecatedPath path: String, mode: Mode = .read, flags: Flags = .default) 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.

mode

Access mode. Default mode is .read.

flags

Additional POSIX flags.