URLResourceValues
The properties that the file system resources support.
Declaration
struct URLResourceValuesOverview
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
Directory values
File values
documentIdentifierfileContentIdentifierfileAllocatedSizefileProtectionfileResourceIdentifierfileResourceTypefileSecurityfileSizeisPurgeableisSparsemayHaveExtendedAttributesisExecutableisRegularFilemayShareFileContenttotalFileAllocatedSizetotalFileSizefileIdentifier
Volume capacity values
volumeAvailableCapacityvolumeAvailableCapacityForImportantUsagevolumeAvailableCapacityForOpportunisticUsagevolumeTotalCapacity
Volume status values
volumeIsAutomountedvolumeIsBrowsablevolumeIsEjectablevolumeIsEncryptedvolumeIsInternalvolumeIsJournalingvolumeIsLocalvolumeIsReadOnlyvolumeIsRemovablevolumeIsRootFileSystemvolumeTypeNamevolumeSubtypevolumeMountFromLocation
Volume support values
isMountTriggerisVolumevolumevolumeCreationDatevolumeIdentifiervolumeLocalizedFormatDescriptionvolumeLocalizedNamevolumeMaximumFileSizevolumeNamevolumeResourceCountvolumeSupportsAccessPermissionsvolumeSupportsAdvisoryFileLockingvolumeSupportsCasePreservedNamesvolumeSupportsCaseSensitiveNamesvolumeSupportsCompressionvolumeSupportsExclusiveRenamingvolumeSupportsExtendedSecurityvolumeSupportsFileCloningvolumeSupportsHardLinksvolumeSupportsImmutableFilesvolumeSupportsJournalingvolumeSupportsPersistentIDsvolumeSupportsRenamingvolumeSupportsRootDirectoryDatesvolumeSupportsSparseFilesvolumeSupportsSwapRenamingvolumeSupportsSymbolicLinksvolumeSupportsVolumeSizesvolumeSupportsZeroRunsvolumeURLForRemountingvolumeUUIDString
Ubiquitous values
isUbiquitousItemubiquitousItemIsSharedubiquitousItemIsExcludedFromSyncubiquitousSharedItemCurrentUserPermissionsubiquitousSharedItemCurrentUserRoleubiquitousSharedItemMostRecentEditorNameComponentsubiquitousSharedItemOwnerNameComponentsubiquitousItemContainerDisplayNameubiquitousItemDownloadRequestedubiquitousItemDownloadingErrorubiquitousItemDownloadingStatusubiquitousItemHasUnresolvedConflictsubiquitousItemIsDownloadingubiquitousItemIsUploadedubiquitousItemIsUploadingubiquitousItemUploadingError
Thumbnail values
Universal resource values
addedToDirectoryDateallValuesattributeModificationDatecanonicalPathcontentAccessDatecontentModificationDatecreationDatecustomIconeffectiveIcongenerationIdentifierhasHiddenExtensionisAliasFileisExcludedFromBackupisHiddenisPackageisReadableisSymbolicLinkisSystemImmutableisUserImmutableisWritablelabelColorlabelNumberlinkCountlocalizedLabellocalizedNamelocalizedTypeDescriptionnameparentDirectorypathpreferredIOBlockSizequarantinePropertiestagNamestypeIdentifiercontentType