<!--
{
  "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/NSString/isAbsolutePath",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(cs)NSString(py)absolutePath"
  },
  "title" : "isAbsolutePath"
}
-->

# isAbsolutePath

A Boolean value that indicates whether the receiver represents an absolute path.

```
var isAbsolutePath: Bool { get }
```

## Discussion

<doc://com.apple.documentation/documentation/Swift/true> if the receiver (if interpreted as a path) represents an absolute path, otherwise <doc://com.apple.documentation/documentation/Swift/false>.

See [String Programming Guide](https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/Strings/introStrings.html#//apple_ref/doc/uid/10000035i) for more information on paths.

Note that this method only works with file paths (not, for example, string representations of URLs). The method does not check the filesystem for the existence of the path (use [`fileExists(atPath:)`](/documentation/Foundation/FileManager/fileExists(atPath:)) or similar methods in [`FileManager`](/documentation/Foundation/FileManager) for that task).

---

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)