---
title: url
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/nsfileversion/url
---

# url

The URL identifying the location of the file associated with the file version object.

## Declaration

```swift
var url: URL { get }
```

## Discussion

Discussion The URL identifies the location of the file associated with this version. If this version of the file has been deleted, the value in this property is nil. Do not display any part of this URL to the user. The location of file versions is managed by the system and should not be exposed to the user. If you want to present the name of a file version, use the localizedName property.

## See Also

### Accessing the Version Information

- [localizedName](foundation/nsfileversion/localizedname.md)
- [localizedNameOfSavingComputer](foundation/nsfileversion/localizednameofsavingcomputer.md)
- [modificationDate](foundation/nsfileversion/modificationdate.md)
- [persistentIdentifier](foundation/nsfileversion/persistentidentifier.md)
- [isDiscardable](foundation/nsfileversion/isdiscardable.md)
