---
title: isFileURL
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/nsurl/isfileurl
---

# isFileURL

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

## Declaration

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

## Discussion

Discussion The property’s value is  true if the receiver uses the file scheme, false otherwise. Both file path and file reference URLs are considered to be file URLs. If this property’s value is true, then the receiver’s path property contains a suitable value for input into FileManager or NSPathUtilities.

## See Also

### Querying an NSURL

- [checkResourceIsReachableAndReturnError(_:)](foundation/nsurl/checkresourceisreachableandreturnerror(_:).md)
- [isFileReferenceURL()](foundation/nsurl/isfilereferenceurl().md)
