Skip to content

Type MethodFoundationEssentials

currentDirectory()

iOS 16.0+ iPadOS 16.0+ Mac Catalyst 16.0+ macOS 13.0+ tvOS 16.0+ watchOS 9.0+
The working directory of the current process. Calling this property will issue a getcwd syscall.
static func currentDirectory() -> URL