---
title: currentDirectoryPath
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/filemanager/currentdirectorypath
---

# currentDirectoryPath

The path to the program’s current directory.

## Declaration

```swift
var currentDirectoryPath: String { get }
```

## Discussion

Discussion The current directory path is the starting point for any relative paths you specify. For example, if the current directory is /tmp and you specify a relative pathname of reports/info.txt, the resulting full path for the item is /tmp/reports/info.txt. When an app is launched, this property is initially set to the app’s current working directory. If the current working directory is not accessible for any reason, the value of this property is nil. You can change the value of this property by calling the changeCurrentDirectoryPath(_:) method. warning: This property reports the current working directory for the current process, not just the receiver.

## See Also

### Related Documentation

- [createDirectory(atPath:withIntermediateDirectories:attributes:)](foundation/filemanager/createdirectory(atpath:withintermediatedirectories:attributes:).md)

### Managing the current directory

- [changeCurrentDirectoryPath(_:)](foundation/filemanager/changecurrentdirectorypath(_:).md)
