openDirectory(atPath:options:)
Open the directory at path
.
- iOS
- 13.0+
- macOS
- 10.15+
- tvOS
- 13.0+
- watchOS
- 6.0+
func openDirectory(atPath path: FilePath, options: OpenOptions.Directory) async throws -> DirectoryFileHandle
Parameters
Returns
A handle to the opened directory.
Errors
Error codes thrown include:
notFound
ifpath
doesn’t exist.
Implementation details
Uses the open(2)
system call.