<!--
{
  "documentType" : "article",
  "framework" : "CoreFoundation",
  "identifier" : "/documentation/CoreFoundation/common-file-system-resource-keys",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "Common File System Resource Keys"
}
-->

# Common File System Resource Keys

Keys that are applicable to file system URLs.

## Topics

### Constants

[`kCFURLNameKey`](/documentation/CoreFoundation/kCFURLNameKey)

Key for the resource’s name in the file system, returned as a `CFString` object.

[`kCFURLLocalizedNameKey`](/documentation/CoreFoundation/kCFURLLocalizedNameKey)

Key for the resource’s localized or extension-hidden name, retuned as a `CFString` object.

[`kCFURLPathKey`](/documentation/CoreFoundation/kCFURLPathKey)

A `CFString` value containing the URL’s path as a file system path. (read-only)

[`kCFURLIsRegularFileKey`](/documentation/CoreFoundation/kCFURLIsRegularFileKey)

Key for determining whether the resource is a regular file, as opposed to a directory or a symbolic link. Returned as a `CFBoolean` object.

[`kCFURLIsDirectoryKey`](/documentation/CoreFoundation/kCFURLIsDirectoryKey)

Key for determining whether the resource is a directory, returned as a `CFBoolean` object.

[`kCFURLIsSymbolicLinkKey`](/documentation/CoreFoundation/kCFURLIsSymbolicLinkKey)

Key for determining whether the resource is a symbolic link, returned as a `CFBoolean` object.

[`kCFURLIsVolumeKey`](/documentation/CoreFoundation/kCFURLIsVolumeKey)

Key for determining whether the resource is the root directory of a volume, returned as a `CFBoolean` object.

[`kCFURLIsPackageKey`](/documentation/CoreFoundation/kCFURLIsPackageKey)

Key for determining whether the resource is a packaged directory, returned as a `CFBoolean` object.

[`kCFURLIsSystemImmutableKey`](/documentation/CoreFoundation/kCFURLIsSystemImmutableKey)

Key for determining whether the resource’s system immutable bit is set, returned as a `CFBoolean` object.

[`kCFURLIsUserImmutableKey`](/documentation/CoreFoundation/kCFURLIsUserImmutableKey)

Key for determining whether the resource’s user immutable bit is set, returned as a `CFBoolean` object.

[`kCFURLIsHiddenKey`](/documentation/CoreFoundation/kCFURLIsHiddenKey)

Key for determining whether the resource is normally not displayed to users, returned as a `CFBoolean` object.

[`kCFURLHasHiddenExtensionKey`](/documentation/CoreFoundation/kCFURLHasHiddenExtensionKey)

Key for determining whether the resource’s extension is normally removed from its localized name, returned as a `CFBoolean` object.

[`kCFURLCreationDateKey`](/documentation/CoreFoundation/kCFURLCreationDateKey)

Key for the resource’s creation date, returned as a `CFDate` object if the volume supports creation dates, or `nil` if creation dates are unsupported.

[`kCFURLContentAccessDateKey`](/documentation/CoreFoundation/kCFURLContentAccessDateKey)

Key for the last time the resource was accessed, returned as a `CFDate` object if the volume supports access dates, or `nil` if access dates are unsupported.

[`kCFURLContentModificationDateKey`](/documentation/CoreFoundation/kCFURLContentModificationDateKey)

Key for the last time the resource was modified, returned as a `CFDate` object if the volume supports modification dates, or `nil` if modification dates are unsupported.

[`kCFURLAttributeModificationDateKey`](/documentation/CoreFoundation/kCFURLAttributeModificationDateKey)

Key for the last time the resource’s attributes were modified, returned as a `CFDate` object if the volume supports attribute modification dates, or `nil` if attribute modification dates are unsupported.

[`kCFURLLinkCountKey`](/documentation/CoreFoundation/kCFURLLinkCountKey)

Key for the number of hard links to the resource, returned as a `CFNumber` object.

[`kCFURLParentDirectoryURLKey`](/documentation/CoreFoundation/kCFURLParentDirectoryURLKey)

Key for the parent directory of the resource, returned as a `CFURL` object, or `nil` if the resource is the root directory of its volume.

[`kCFURLVolumeURLKey`](/documentation/CoreFoundation/kCFURLVolumeURLKey)

Key for the root directory of the resource’s volume, returned as a `CFURL` object.

[`kCFURLTypeIdentifierKey`](/documentation/CoreFoundation/kCFURLTypeIdentifierKey)

Key for the resource’s uniform type identifier (UTI), returned as a `CFString` object.

[`kCFURLLocalizedTypeDescriptionKey`](/documentation/CoreFoundation/kCFURLLocalizedTypeDescriptionKey)

Key for the resource’s localized type description, returned as a `CFString` object.

[`kCFURLLabelNumberKey`](/documentation/CoreFoundation/kCFURLLabelNumberKey)

Key for the resource’s label number, returned as a `CFNumber` object.

[`kCFURLLabelColorKey`](/documentation/CoreFoundation/kCFURLLabelColorKey)

Key for the resource’s label color, returned as a `CFColorRef` object, or `NULL` if the resource has no label color.

[`kCFURLLocalizedLabelKey`](/documentation/CoreFoundation/kCFURLLocalizedLabelKey)

Key for the resource’s localized label text, returned as a `CFString` object, or `NULL` if the resource has no localized label text.

[`kCFURLEffectiveIconKey`](/documentation/CoreFoundation/kCFURLEffectiveIconKey)

Key for the resource’s typical icon, returned as a `CGImageRef` object.

[`kCFURLCustomIconKey`](/documentation/CoreFoundation/kCFURLCustomIconKey)

Key for the icon stored with the resource, returned as a `CGImageRef` object, or `NULL` if the resource has no custom icon.

[`kCFURLFileResourceIdentifierKey`](/documentation/CoreFoundation/kCFURLFileResourceIdentifierKey)

Key for the resource’s unique identifier, returned as a `CFType` object.

[`kCFURLVolumeIdentifierKey`](/documentation/CoreFoundation/kCFURLVolumeIdentifierKey)

Key for the unique identifier of the resource’s volume, returned as a `CFType` object.

[`kCFURLPreferredIOBlockSizeKey`](/documentation/CoreFoundation/kCFURLPreferredIOBlockSizeKey)

Key for the optimal block size to use when reading or writing this file’s data, returned as a `CFNumber` object, or `NULL` if the preferred size is not available.

[`kCFURLIsReadableKey`](/documentation/CoreFoundation/kCFURLIsReadableKey)

Key for determining whether the current process (as determined by the EUID) can read the resource, returned as a `CFBoolean` object.

[`kCFURLIsWritableKey`](/documentation/CoreFoundation/kCFURLIsWritableKey)

Key for determining whether the current process (as determined by the EUID) can write to the resource, returned as a `CFBoolean` object.

[`kCFURLIsExecutableKey`](/documentation/CoreFoundation/kCFURLIsExecutableKey)

Key for determining whether the current process (as determined by the EUID) can execute the resource (if it is a file) or search the resource (if it is a directory), returned as a `CFBoolean` object.

[`kCFURLFileSecurityKey`](/documentation/CoreFoundation/kCFURLFileSecurityKey)

Key for the resource’s security information, returned as a `CFFileSecurity` object.

[`kCFURLIsExcludedFromBackupKey`](/documentation/CoreFoundation/kCFURLIsExcludedFromBackupKey)

[`kCFURLFileResourceTypeKey`](/documentation/CoreFoundation/kCFURLFileResourceTypeKey)

Key for the resource’s object type, returned as a `CFString` object.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)