---
title: homeDirectory
framework: foundation
role: symbol
role_heading: Type Property
path: foundation/url/homedirectory
---

# homeDirectory

The home directory for the current user.

## Declaration

```swift
static var homeDirectory: URL { get }
```

## Discussion

Discussion This URL is the equivalent of the shell value ~/. Complexity: O(1).

## See Also

### Accessing home and user directories

- [currentDirectory()](foundation/url/currentdirectory().md)
- [homeDirectory(forUser:)](foundation/url/homedirectory(foruser:).md)
