---
title: FileManager.SearchPathDomainMask
framework: foundation
role: symbol
role_heading: Structure
path: foundation/filemanager/searchpathdomainmask
---

# FileManager.SearchPathDomainMask

Domain constants specifying base locations to use when you search for significant directories.

## Declaration

```swift
struct SearchPathDomainMask
```

## Overview

Overview These constants are used by the urls(for:in:) and url(for:in:appropriateFor:create:) methods of FileManager.

## Topics

### Creating a Search Path Domain Mask

- [init(rawValue:)](foundation/filemanager/searchpathdomainmask/init(rawvalue:).md)

### Specifying Search Path Domains

- [userDomainMask](foundation/filemanager/searchpathdomainmask/userdomainmask.md)
- [localDomainMask](foundation/filemanager/searchpathdomainmask/localdomainmask.md)
- [networkDomainMask](foundation/filemanager/searchpathdomainmask/networkdomainmask.md)
- [systemDomainMask](foundation/filemanager/searchpathdomainmask/systemdomainmask.md)
- [allDomainsMask](foundation/filemanager/searchpathdomainmask/alldomainsmask.md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [ExpressibleByArrayLiteral](swift/expressiblebyarrayliteral.md)
- [OptionSet](swift/optionset.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
- [SetAlgebra](swift/setalgebra.md)

## See Also

### Supporting Types

- [FileManager.DirectoryEnumerationOptions](foundation/filemanager/directoryenumerationoptions.md)
- [FileManager.SearchPathDirectory](foundation/filemanager/searchpathdirectory.md)
- [FileAttributeKey](foundation/fileattributekey.md)
- [FileAttributeType](foundation/fileattributetype.md)
- [FileProtectionType](foundation/fileprotectiontype.md)
- [URLFileProtection](foundation/urlfileprotection.md)
