---
title: fileResourceIdentifier
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/urlresourcevalues/fileresourceidentifier
---

# fileResourceIdentifier

An identifier for comparing two file system objects for equality.

## Declaration

```swift
var fileResourceIdentifier: (any NSCopying & NSSecureCoding & NSObjectProtocol)? { get }
```

## Discussion

Discussion Compare two file resource identifiers using - [NSURL isEqual:]. Two object identifiers are equal if they have the same file system path or if the paths link to the same inode on the same file system. This identifier isn’t persistent across system restarts.

## See Also

### File values

- [documentIdentifier](foundation/urlresourcevalues/documentidentifier.md)
- [fileContentIdentifier](foundation/urlresourcevalues/filecontentidentifier.md)
- [fileAllocatedSize](foundation/urlresourcevalues/fileallocatedsize.md)
- [fileProtection](foundation/urlresourcevalues/fileprotection.md)
- [fileResourceType](foundation/urlresourcevalues/fileresourcetype.md)
- [fileSecurity](foundation/urlresourcevalues/filesecurity.md)
- [fileSize](foundation/urlresourcevalues/filesize.md)
- [isPurgeable](foundation/urlresourcevalues/ispurgeable.md)
- [isSparse](foundation/urlresourcevalues/issparse.md)
- [mayHaveExtendedAttributes](foundation/urlresourcevalues/mayhaveextendedattributes.md)
- [isExecutable](foundation/urlresourcevalues/isexecutable.md)
- [isRegularFile](foundation/urlresourcevalues/isregularfile.md)
- [mayShareFileContent](foundation/urlresourcevalues/maysharefilecontent.md)
- [totalFileAllocatedSize](foundation/urlresourcevalues/totalfileallocatedsize.md)
- [totalFileSize](foundation/urlresourcevalues/totalfilesize.md)
