FileSystemProtocol

    The interface for interacting with a file system.

    FileSystemProtocol.swift:20FileSystemProtocol.md
    iOS
    13.0+
    macOS
    10.15+
    tvOS
    13.0+
    watchOS
    6.0+
    protocol FileSystemProtocol : Sendable
    Browse conforming types

    Opening files with managed lifecycles

    Files and directories can be opened and have their lifecycles managed by using the following methods:

    Opening files

    Files and directories can be opened using the following methods. The caller is responsible for closing it to avoid leaking resources.

    File information

    Managing files

    System directories

    Supertypes

    • protocol Sendable

      A type whose values can safely be passed across concurrency domains by copying.

    Requirements

    Type members

    Instance members

    See also

    Citizens in _NIOFileSystem

    Instance members

    Citizens in _NIOFileSystem

    where Self == FileSystem

    Type members