Sources/_NIOFileSystem/Docs.docc/index.md
_NIOFileSystemA file system library for Swift.
This module implements a file system library for Swift, providing ways to interact with and manage
files. It provides a concrete FileSystem for interacting with the local file system in addition
to a set of protocols for creating other file system implementations.
_NIOFileSystem is cross-platform with the following caveats:
"/Users/hal9000/") are different to paths on
Windows ("C:\Users\hal9000").FileInfo for further
details.The following sample code demonstrates a number of the APIs offered by this module:
@Snippet(path: "swift-nio/Snippets/NIOFileSystemTour")
In depth documentation can be found in the following sections.
FileSystemFileHandleReadFileHandleWriteFileHandleReadWriteFileHandleDirectoryFileHandlewithFileSystem(numberOfThreads:_:)FileInfoFileTypeFileChunksBufferedReaderBufferedWriterDirectoryEntryDirectoryEntriesFileSystemError is the only top-level error type thrown by the package (apart from Swift's
CancellationError).
FileSystemErrorFileSystemError/SystemCallErrorCustom file system's can be created by implementing FileSystemProtocol which depends on a number
of other protocols. These include the following:
FileSystemProtocolFileHandleProtocolReadableFileHandleProtocolWritableFileHandleProtocolReadableAndWritableFileHandleProtocolDirectoryFileHandleProtocol