mirror of
https://github.com/apple/swift-nio
synced 2026-11-23 04:34:23 +00:00
This re-enables documentation lost during refactoring work, under the target _NIOFileSystem resolves #3474 ### Motivation: During the refactoring of NIOFileSystem and recent Swift updates, the mechanism to "shadow" symbols using `@_exported import` has stopped working for documentation and imports for symbols, which means that _NIOFileSystem is the target that needs to host the documentation for this (for now) ### Modifications: Moves DocC catalog into _NIOFileSystem target, and updates disambiguation hashes on overloaded symbols in order to verify no warnings are presented while generating documentation. Updates .spi.yml to present _NIOFileSystem instead of NIOFileSystem ### Result: Previous documentation should be available again, although at a slightly different URI structure within Swift Package Index. Co-authored-by: Cory Benfield <lukasa@apple.com>
876 B
876 B
_NIOFileSystem/DirectoryFileHandleProtocol
Topics
Iterating a directory
listContents()
Opening files with managed lifecycles
Open files and directories at paths relative to the directory handle. These methods manage
the lifecycle of the handles by closing them when the execute closure returns.
withFileHandle(forReadingAt:options:execute:)withFileHandle(forWritingAt:options:execute:)withFileHandle(forReadingAndWritingAt:options:execute:)withDirectoryHandle(atPath:options:execute:)
Opening files
Open files and directories at paths relative to the directory handle. These methods return the handle to the caller who is responsible for closing it.
openFile(forReadingAt:options:)openFile(forWritingAt:options:)openFile(forReadingAndWritingAt:options:)openDirectory(atPath:options:)