---
title: URLResourceValues
framework: foundation
role: symbol
role_heading: Structure
path: foundation/urlresourcevalues
---

# URLResourceValues

The properties that the file system resources support.

## Declaration

```swift
struct URLResourceValues
```

## Overview

Overview Not all property values exist for all file system URLs. For example, if a file is located on a volume that doesn’t support creation dates, you can request the creation date property, but the request returns nil and doesn’t generate an error. Only the fields requested by the keys you pass into the URL function to receive this value will be populated. The other fields return nil regardless of the underlying property on the file system. As a convenience, you can request volume resource values from any file system URL. The value returned reflects the property value for the volume that the resource is located on.

## Topics

### Application values

- [applicationIsScriptable](foundation/urlresourcevalues/applicationisscriptable.md)
- [isApplication](foundation/urlresourcevalues/isapplication.md)

### Directory values

- [isDirectory](foundation/urlresourcevalues/isdirectory.md)
- [directoryEntryCount](foundation/urlresourcevalues/directoryentrycount.md)

### File values

- [documentIdentifier](foundation/urlresourcevalues/documentidentifier.md)
- [fileContentIdentifier](foundation/urlresourcevalues/filecontentidentifier.md)
- [fileAllocatedSize](foundation/urlresourcevalues/fileallocatedsize.md)
- [fileProtection](foundation/urlresourcevalues/fileprotection.md)
- [fileResourceIdentifier](foundation/urlresourcevalues/fileresourceidentifier.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)
- [fileIdentifier](foundation/urlresourcevalues/fileidentifier.md)

### Volume capacity values

- [volumeAvailableCapacity](foundation/urlresourcevalues/volumeavailablecapacity.md)
- [volumeAvailableCapacityForImportantUsage](foundation/urlresourcevalues/volumeavailablecapacityforimportantusage.md)
- [volumeAvailableCapacityForOpportunisticUsage](foundation/urlresourcevalues/volumeavailablecapacityforopportunisticusage.md)
- [volumeTotalCapacity](foundation/urlresourcevalues/volumetotalcapacity.md)

### Volume status values

- [volumeIsAutomounted](foundation/urlresourcevalues/volumeisautomounted.md)
- [volumeIsBrowsable](foundation/urlresourcevalues/volumeisbrowsable.md)
- [volumeIsEjectable](foundation/urlresourcevalues/volumeisejectable.md)
- [volumeIsEncrypted](foundation/urlresourcevalues/volumeisencrypted.md)
- [volumeIsInternal](foundation/urlresourcevalues/volumeisinternal.md)
- [volumeIsJournaling](foundation/urlresourcevalues/volumeisjournaling.md)
- [volumeIsLocal](foundation/urlresourcevalues/volumeislocal.md)
- [volumeIsReadOnly](foundation/urlresourcevalues/volumeisreadonly.md)
- [volumeIsRemovable](foundation/urlresourcevalues/volumeisremovable.md)
- [volumeIsRootFileSystem](foundation/urlresourcevalues/volumeisrootfilesystem.md)
- [volumeTypeName](foundation/urlresourcevalues/volumetypename.md)
- [volumeSubtype](foundation/urlresourcevalues/volumesubtype.md)
- [volumeMountFromLocation](foundation/urlresourcevalues/volumemountfromlocation.md)

### Volume support values

- [isMountTrigger](foundation/urlresourcevalues/ismounttrigger.md)
- [isVolume](foundation/urlresourcevalues/isvolume.md)
- [volume](foundation/urlresourcevalues/volume.md)
- [volumeCreationDate](foundation/urlresourcevalues/volumecreationdate.md)
- [volumeIdentifier](foundation/urlresourcevalues/volumeidentifier.md)
- [volumeLocalizedFormatDescription](foundation/urlresourcevalues/volumelocalizedformatdescription.md)
- [volumeLocalizedName](foundation/urlresourcevalues/volumelocalizedname.md)
- [volumeMaximumFileSize](foundation/urlresourcevalues/volumemaximumfilesize.md)
- [volumeName](foundation/urlresourcevalues/volumename.md)
- [volumeResourceCount](foundation/urlresourcevalues/volumeresourcecount.md)
- [volumeSupportsAccessPermissions](foundation/urlresourcevalues/volumesupportsaccesspermissions.md)
- [volumeSupportsAdvisoryFileLocking](foundation/urlresourcevalues/volumesupportsadvisoryfilelocking.md)
- [volumeSupportsCasePreservedNames](foundation/urlresourcevalues/volumesupportscasepreservednames.md)
- [volumeSupportsCaseSensitiveNames](foundation/urlresourcevalues/volumesupportscasesensitivenames.md)
- [volumeSupportsCompression](foundation/urlresourcevalues/volumesupportscompression.md)
- [volumeSupportsExclusiveRenaming](foundation/urlresourcevalues/volumesupportsexclusiverenaming.md)
- [volumeSupportsExtendedSecurity](foundation/urlresourcevalues/volumesupportsextendedsecurity.md)
- [volumeSupportsFileCloning](foundation/urlresourcevalues/volumesupportsfilecloning.md)
- [volumeSupportsHardLinks](foundation/urlresourcevalues/volumesupportshardlinks.md)
- [volumeSupportsImmutableFiles](foundation/urlresourcevalues/volumesupportsimmutablefiles.md)
- [volumeSupportsJournaling](foundation/urlresourcevalues/volumesupportsjournaling.md)
- [volumeSupportsPersistentIDs](foundation/urlresourcevalues/volumesupportspersistentids.md)
- [volumeSupportsRenaming](foundation/urlresourcevalues/volumesupportsrenaming.md)
- [volumeSupportsRootDirectoryDates](foundation/urlresourcevalues/volumesupportsrootdirectorydates.md)
- [volumeSupportsSparseFiles](foundation/urlresourcevalues/volumesupportssparsefiles.md)
- [volumeSupportsSwapRenaming](foundation/urlresourcevalues/volumesupportsswaprenaming.md)
- [volumeSupportsSymbolicLinks](foundation/urlresourcevalues/volumesupportssymboliclinks.md)
- [volumeSupportsVolumeSizes](foundation/urlresourcevalues/volumesupportsvolumesizes.md)
- [volumeSupportsZeroRuns](foundation/urlresourcevalues/volumesupportszeroruns.md)
- [volumeURLForRemounting](foundation/urlresourcevalues/volumeurlforremounting.md)
- [volumeUUIDString](foundation/urlresourcevalues/volumeuuidstring.md)

### Ubiquitous values

- [isUbiquitousItem](foundation/urlresourcevalues/isubiquitousitem.md)
- [ubiquitousItemIsShared](foundation/urlresourcevalues/ubiquitousitemisshared.md)
- [ubiquitousItemIsExcludedFromSync](foundation/urlresourcevalues/ubiquitousitemisexcludedfromsync.md)
- [ubiquitousSharedItemCurrentUserPermissions](foundation/urlresourcevalues/ubiquitousshareditemcurrentuserpermissions.md)
- [ubiquitousSharedItemCurrentUserRole](foundation/urlresourcevalues/ubiquitousshareditemcurrentuserrole.md)
- [ubiquitousSharedItemMostRecentEditorNameComponents](foundation/urlresourcevalues/ubiquitousshareditemmostrecenteditornamecomponents.md)
- [ubiquitousSharedItemOwnerNameComponents](foundation/urlresourcevalues/ubiquitousshareditemownernamecomponents.md)
- [ubiquitousItemContainerDisplayName](foundation/urlresourcevalues/ubiquitousitemcontainerdisplayname.md)
- [ubiquitousItemDownloadRequested](foundation/urlresourcevalues/ubiquitousitemdownloadrequested.md)
- [ubiquitousItemDownloadingError](foundation/urlresourcevalues/ubiquitousitemdownloadingerror.md)
- [ubiquitousItemDownloadingStatus](foundation/urlresourcevalues/ubiquitousitemdownloadingstatus.md)
- [ubiquitousItemHasUnresolvedConflicts](foundation/urlresourcevalues/ubiquitousitemhasunresolvedconflicts.md)
- [ubiquitousItemIsDownloading](foundation/urlresourcevalues/ubiquitousitemisdownloading.md)
- [ubiquitousItemIsUploaded](foundation/urlresourcevalues/ubiquitousitemisuploaded.md)
- [ubiquitousItemIsUploading](foundation/urlresourcevalues/ubiquitousitemisuploading.md)
- [ubiquitousItemUploadingError](foundation/urlresourcevalues/ubiquitousitemuploadingerror.md)

### Thumbnail values

- [thumbnail](foundation/urlresourcevalues/thumbnail.md)
- [thumbnailDictionary](foundation/urlresourcevalues/thumbnaildictionary-7jyzz.md)
- [thumbnailDictionary](foundation/urlresourcevalues/thumbnaildictionary-4ztst.md)

### Universal resource values

- [addedToDirectoryDate](foundation/urlresourcevalues/addedtodirectorydate.md)
- [allValues](foundation/urlresourcevalues/allvalues.md)
- [attributeModificationDate](foundation/urlresourcevalues/attributemodificationdate.md)
- [canonicalPath](foundation/urlresourcevalues/canonicalpath.md)
- [contentAccessDate](foundation/urlresourcevalues/contentaccessdate.md)
- [contentModificationDate](foundation/urlresourcevalues/contentmodificationdate.md)
- [creationDate](foundation/urlresourcevalues/creationdate.md)
- [customIcon](foundation/urlresourcevalues/customicon.md)
- [effectiveIcon](foundation/urlresourcevalues/effectiveicon.md)
- [generationIdentifier](foundation/urlresourcevalues/generationidentifier.md)
- [hasHiddenExtension](foundation/urlresourcevalues/hashiddenextension.md)
- [isAliasFile](foundation/urlresourcevalues/isaliasfile.md)
- [isExcludedFromBackup](foundation/urlresourcevalues/isexcludedfrombackup.md)
- [isHidden](foundation/urlresourcevalues/ishidden.md)
- [isPackage](foundation/urlresourcevalues/ispackage.md)
- [isReadable](foundation/urlresourcevalues/isreadable.md)
- [isSymbolicLink](foundation/urlresourcevalues/issymboliclink.md)
- [isSystemImmutable](foundation/urlresourcevalues/issystemimmutable.md)
- [isUserImmutable](foundation/urlresourcevalues/isuserimmutable.md)
- [isWritable](foundation/urlresourcevalues/iswritable.md)
- [labelColor](foundation/urlresourcevalues/labelcolor.md)
- [labelNumber](foundation/urlresourcevalues/labelnumber.md)
- [linkCount](foundation/urlresourcevalues/linkcount.md)
- [localizedLabel](foundation/urlresourcevalues/localizedlabel.md)
- [localizedName](foundation/urlresourcevalues/localizedname.md)
- [localizedTypeDescription](foundation/urlresourcevalues/localizedtypedescription.md)
- [name](foundation/urlresourcevalues/name.md)
- [parentDirectory](foundation/urlresourcevalues/parentdirectory.md)
- [path](foundation/urlresourcevalues/path.md)
- [preferredIOBlockSize](foundation/urlresourcevalues/preferredioblocksize.md)
- [quarantineProperties](foundation/urlresourcevalues/quarantineproperties.md)
- [tagNames](foundation/urlresourcevalues/tagnames.md)
- [typeIdentifier](foundation/urlresourcevalues/typeidentifier.md)
- [contentType](foundation/urlresourcevalues/contenttype.md)

### Initializers

- [init()](foundation/urlresourcevalues/init().md)

### Instance Properties

- [ubiquitousItemIsSyncPaused](foundation/urlresourcevalues/ubiquitousitemissyncpaused.md)
- [ubiquitousItemSupportedSyncControls](foundation/urlresourcevalues/ubiquitousitemsupportedsynccontrols.md)

## See Also

### Accessing resource values

- [resourceValues(forKeys:)](foundation/url/resourcevalues(forkeys:).md)
- [setResourceValues(_:)](foundation/url/setresourcevalues(_:).md)
- [removeCachedResourceValue(forKey:)](foundation/url/removecachedresourcevalue(forkey:).md)
- [removeAllCachedResourceValues()](foundation/url/removeallcachedresourcevalues().md)
- [setTemporaryResourceValue(_:forKey:)](foundation/url/settemporaryresourcevalue(_:forkey:).md)
- [URLResourceKey](foundation/urlresourcekey.md)
