<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.0.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/FileManager/SearchPathDomainMask",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:@E@NSSearchPathDomainMask"
  },
  "title" : "FileManager.SearchPathDomainMask"
}
-->

# FileManager.SearchPathDomainMask

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

```
struct SearchPathDomainMask
```

## Overview

These constants are used by the [`urls(for:in:)`](/documentation/Foundation/FileManager/urls(for:in:)) and [`url(for:in:appropriateFor:create:)`](/documentation/Foundation/FileManager/url(for:in:appropriateFor:create:)) methods of FileManager.

## Topics

### Creating a Search Path Domain Mask

[`init(rawValue:)`](/documentation/Foundation/FileManager/SearchPathDomainMask/init(rawValue:))

Creates a search path domain mask.

### Specifying Search Path Domains

[`userDomainMask`](/documentation/Foundation/FileManager/SearchPathDomainMask/userDomainMask)

The user’s home directory—the place to install user’s personal items (`~`).

[`localDomainMask`](/documentation/Foundation/FileManager/SearchPathDomainMask/localDomainMask)

The place to install items available to everyone on this machine.

[`networkDomainMask`](/documentation/Foundation/FileManager/SearchPathDomainMask/networkDomainMask)

The place to install items available on the network (`/Network`).

[`systemDomainMask`](/documentation/Foundation/FileManager/SearchPathDomainMask/systemDomainMask)

A directory for system files provided by Apple (`/System`) .

[`allDomainsMask`](/documentation/Foundation/FileManager/SearchPathDomainMask/allDomainsMask)

All domains.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)