init(path:)
Open a new NIOFileHandle
. This operation is blocking.
This declaration is deprecated: Avoid using NIOFileHandle. The type is difficult to hold correctly, \ use NIOFileSystem as a replacement API.
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 onceclose
is called.