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

# isFileURL

A boolean value that determines whether the receiver is a file URL.

```
var isFileURL: Bool { get }
```

## Discussion

The property’s value is  <doc://com.apple.documentation/documentation/Swift/true> if the receiver uses the file scheme, <doc://com.apple.documentation/documentation/Swift/false> otherwise. Both file path and file reference URLs are considered to be file URLs.

If this property’s value is <doc://com.apple.documentation/documentation/Swift/true>, then the receiver’s [`path`](/documentation/Foundation/NSURL/path) property contains a suitable value for input into [`FileManager`](/documentation/Foundation/FileManager) or `NSPathUtilities`.

---

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)