DirectoryFileHandleProtocol

A handle suitable for directories.

FileHandleProtocol.swift:556DirectoryFileHandleProtocol.md
iOS
13.0+
macOS
10.15+
tvOS
13.0+
watchOS
6.0+
protocol DirectoryFileHandleProtocol : FileHandleProtocol
Browse conforming types

Iterating a directory

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.

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.