FileSystemProtocol

The interface for interacting with a file system.

FileSystemProtocol.swift:19FileSystemProtocol.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