Platforms to show: All Mac Windows Linux Cross-Platform

Back to CFURLMBS class.

Next items

CFURLMBS.kCFURLAddedToDirectoryDateKey as CFStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreFoundation MBS MacCF Plugin 17.1 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the resource keys.

The date the resource was created, or renamed into or within its parent directory. Note that inconsistent behavior may be observed when this attribute is requested on hard-linked items. This property is not supported by all volumes. (Read-only, value type CFDateMBS)
for macOS 10.10 or later.

CFURLMBS.kCFURLApplicationIsScriptableKey as CFStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreFoundation MBS MacCF Plugin 17.1 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the resource keys.

True if the resource is scriptable. Only applies to applications. (Read-only, value type CFBooleanMBS)
for macOS 10.11 or later.

CFURLMBS.kCFURLAttributeModificationDateKey as CFStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreFoundation MBS MacCF Plugin 17.1 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the resource keys.

The time the resource's attributes were last modified (Read-only, value type CFDateMBS)

CFURLMBS.kCFURLCanonicalPathKey as CFStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreFoundation MBS MacCF Plugin 17.1 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the resource keys.

the URL's path as a canonical absolute file system path (Read-only, value type CFStringMBS)
for macOS 10.12 or later.

CFURLMBS.kCFURLContentAccessDateKey as CFStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreFoundation MBS MacCF Plugin 17.1 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the resource keys.

The date the resource was last accessed (Read-only, value type CFDateMBS)

CFURLMBS.kCFURLContentModificationDateKey as CFStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreFoundation MBS MacCF Plugin 17.1 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the resource keys.

The time the resource content was last modified (Read-write, value type CFDateMBS)

CFURLMBS.kCFURLCreationDateKey as CFStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreFoundation MBS MacCF Plugin 17.1 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the resource keys.

The date the resource was created (Read-write, value type CFDateMBS)

CFURLMBS.kCFURLDocumentIdentifierKey as CFStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreFoundation MBS MacCF Plugin 17.1 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the resource keys.

The document identifier -- a value assigned by the kernel to a document (which can be either a file or directory) and is used to identify the document regardless of where it gets moved on a volume. The document identifier survives "safe save” operations; i.e it is sticky to the path it was assigned to (NSURL -replaceItemAtURL:withItemAtURL:backupItemName:options:resultingItemURL:error: is the preferred safe-save API). The document identifier is persistent across system restarts. The document identifier is not transferred when the file is copied. Document identifiers are only unique within a single volume. This property is not supported by all volumes. (Read-only, value type CFNumberMBS)
for macOS 10.10 or later.

CFURLMBS.kCFURLFileAllocatedSizeKey as CFStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreFoundation MBS MacCF Plugin 17.1 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the resource keys.

Total size allocated on disk for the file in bytes (number of blocks times block size) (Read-only, value type CFNumberMBS)

CFURLMBS.kCFURLFileResourceIdentifierKey as CFStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreFoundation MBS MacCF Plugin 17.1 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the resource keys.

An identifier which can be used to compare two file system objects for equality using CFObjectMBS.Equal (i.e, two object identifiers are equal if they have the same file system path or if the paths are linked to same inode on the same file system). This identifier is not persistent across system restarts. (Read-only, value type CFObjectMBS)

CFURLMBS.kCFURLFileResourceTypeBlockSpecial as CFStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreFoundation MBS MacCF Plugin 17.1 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the file resource type values.

Special block device.

CFURLMBS.kCFURLFileResourceTypeCharacterSpecial as CFStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreFoundation MBS MacCF Plugin 17.1 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the file resource type values.

Special charset device.

CFURLMBS.kCFURLFileResourceTypeDirectory as CFStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreFoundation MBS MacCF Plugin 17.1 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the file resource type values.

A folder.

CFURLMBS.kCFURLFileResourceTypeKey as CFStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreFoundation MBS MacCF Plugin 17.1 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the resource keys.

Returns the file system object type. (Read-only, value type CFStringMBS)
for macOS 10.7 or later.

CFURLMBS.kCFURLFileResourceTypeNamedPipe as CFStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreFoundation MBS MacCF Plugin 17.1 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the file resource type values.

A named pipe.

CFURLMBS.kCFURLFileResourceTypeRegular as CFStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreFoundation MBS MacCF Plugin 17.1 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the file resource type values.

Regular file.

CFURLMBS.kCFURLFileResourceTypeSocket as CFStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreFoundation MBS MacCF Plugin 17.1 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the file resource type values.

A network socket.

CFURLMBS.kCFURLFileResourceTypeSymbolicLink as CFStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreFoundation MBS MacCF Plugin 17.1 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the file resource type values.

An symbolic link.

CFURLMBS.kCFURLFileResourceTypeUnknown as CFStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreFoundation MBS MacCF Plugin 17.1 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the file resource type values.

Unknown.

CFURLMBS.kCFURLFileSecurityKey as CFStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreFoundation MBS MacCF Plugin 17.1 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the resource keys.

The file system object's security information encapsulated in a CFFileSecurity object. (Read-write, value type CFFileSecurity)

CFURLMBS.kCFURLFileSizeKey as CFStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreFoundation MBS MacCF Plugin 17.1 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the resource keys.

Total file size in bytes (Read-only, value type CFNumberMBS)

CFURLMBS.kCFURLGenerationIdentifierKey as CFStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreFoundation MBS MacCF Plugin 17.1 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the resource keys.

An opaque generation identifier which can be compared using CFObjectMBS.Equal() to determine if the data in a document has been modified. For URLs which refer to the same file inode, the generation identifier will change when the data in the file's data fork is changed (changes to extended attributes or other file system metadata do not change the generation identifier). For URLs which refer to the same directory inode, the generation identifier will change when direct children of that directory are added, removed or renamed (changes to the data of the direct children of that directory will not change the generation identifier). The generation identifier is persistent across system restarts. The generation identifier is tied to a specific document on a specific volume and is not transferred when the document is copied to another volume. This property is not supported by all volumes. (Read-only, value type CFObjectMBS)
for macOS 10.10 or later.

CFURLMBS.kCFURLHasHiddenExtensionKey as CFStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreFoundation MBS MacCF Plugin 17.1 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the resource keys.

True for resources whose filename extension is removed from the localized name property (Read-write, value type CFBooleanMBS)

CFURLMBS.kCFURLIsAliasFileKey as CFStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreFoundation MBS MacCF Plugin 17.1 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the resource keys.

true if the resource is a Finder alias file or a symlink, false otherwise ( Read-only, value type CFBooleanMBS)

CFURLMBS.kCFURLIsApplicationKey as CFStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreFoundation MBS MacCF Plugin 17.1 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the resource keys.

True if resource is an application (Read-only, value type CFBooleanMBS)
for macOS 10.11 or later.

CFURLMBS.kCFURLIsDirectoryKey as CFStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreFoundation MBS MacCF Plugin 17.1 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the resource keys.

True for directories (Read-only, CFBooleanMBS)

CFURLMBS.kCFURLIsExcludedFromBackupKey as CFStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreFoundation MBS MacCF Plugin 17.1 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the resource keys.

true if resource should be excluded from backups, false otherwise (Read-write, value type CFBooleanMBS). This property is only useful for excluding cache and other application support files which are not needed in a backup. Some operations commonly made to user documents will cause this property to be reset to false and so this property should not be used on user documents.
for macOS 10.8 or later.

CFURLMBS.kCFURLIsExecutableKey as CFStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreFoundation MBS MacCF Plugin 17.1 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the resource keys.

true if this process (as determined by EUID) can execute a file resource or search a directory resource. (Read-only, value type CFBooleanMBS)
for mac OS 10.7 or later.

CFURLMBS.kCFURLIsHiddenKey as CFStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreFoundation MBS MacCF Plugin 17.1 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the resource keys.

True for resources normally not displayed to users (Read-write, value type CFBooleanMBS).

If the resource is a hidden because its name starts with a period, setting this property to false will not change the property.

CFURLMBS.kCFURLIsMountTriggerKey as CFStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreFoundation MBS MacCF Plugin 17.1 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the resource keys.

true if this URL is a file system trigger directory. Traversing or opening a file system trigger will cause an attempt to mount a file system on the trigger directory. (Read-only, value type CFBooleanMBS)
for macOS 10.7 or later.

CFURLMBS.kCFURLIsPackageKey as CFStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreFoundation MBS MacCF Plugin 17.1 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the resource keys.
Example
dim f as FolderItem = SpecialFolder.Desktop.Child("test")
dim c as CFURLMBS = NewCFURLMBSFile(f)

dim v as Variant
dim e as CFErrorMBS

if c.ResourcePropertyForKey(c.kCFURLIsPackageKey, v1, e) then
dim p as CFBooleanMBS = v

MsgBox "IsPackage: "+str(p.Value)
else
MsgBox "Error: "+e.Description
end if

True for packaged directories (Read-only 10.6 and 10.7, read-write 10.8, value type CFBooleanMBS).

You can only set or clear this property on directories; if you try to set this property on non-directory objects, the property is ignored. If the directory is a package for some other reason (extension type, etc), setting this property to false will have no effect.

CFURLMBS.kCFURLIsReadableKey as CFStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreFoundation MBS MacCF Plugin 17.1 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the resource keys.

true if this process (as determined by EUID) can read the resource. (Read-only, value type CFBooleanMBS)
for macOS 10.7 or later.

CFURLMBS.kCFURLIsRegularFileKey as CFStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreFoundation MBS MacCF Plugin 17.1 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the resource keys.

True for regular files (Read-only, value type CFBooleanMBS)

CFURLMBS.kCFURLIsSymbolicLinkKey as CFStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreFoundation MBS MacCF Plugin 17.1 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the resource keys.

True for symlinks (Read-only, value type CFBooleanMBS)

CFURLMBS.kCFURLIsSystemImmutableKey as CFStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreFoundation MBS MacCF Plugin 17.1 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the resource keys.

True for system-immutable resources (Read-write, value type CFBooleanMBS)

CFURLMBS.kCFURLIsUbiquitousItemKey as CFStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreFoundation MBS MacCF Plugin 17.1 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the resource keys.

true if this item is synced to the cloud, false if it is only a local file. (Read-only, value type CFBooleanMBS)
for macOS 10.7 or newer.

CFURLMBS.kCFURLIsUserImmutableKey as CFStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreFoundation MBS MacCF Plugin 17.1 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the resource keys.

True for user-immutable resources (Read-write, value type CFBooleanMBS)

CFURLMBS.kCFURLIsVolumeKey as CFStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreFoundation MBS MacCF Plugin 17.1 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the resource keys.

True for the root directory of a volume (Read-only, value type CFBooleanMBS)

CFURLMBS.kCFURLIsWritableKey as CFStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreFoundation MBS MacCF Plugin 17.1 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the resource keys.

true if this process (as determined by EUID) can write to the resource. (Read-only, value type CFBooleanMBS)
for mac OS 10.7 or later.

CFURLMBS.kCFURLLabelNumberKey as CFStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreFoundation MBS MacCF Plugin 17.1 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the resource keys.

The label number assigned to the resource (Read-write, value type CFNumberMBS)

CFURLMBS.kCFURLLinkCountKey as CFStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreFoundation MBS MacCF Plugin 17.1 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the resource keys.

Number of hard links to the resource (Read-only, value type CFNumberMBS)

CFURLMBS.kCFURLLocalizedLabelKey as CFStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreFoundation MBS MacCF Plugin 17.1 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the resource keys.

The user-visible label text (Read-only, value type CFStringMBS)

CFURLMBS.kCFURLLocalizedNameKey as CFStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreFoundation MBS MacCF Plugin 17.1 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the resource keys.

Localized or extension-hidden name as displayed to users (Read-only, value type CFStringMBS)

CFURLMBS.kCFURLLocalizedTypeDescriptionKey as CFStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreFoundation MBS MacCF Plugin 17.1 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the resource keys.

User-visible type or "kind" description (Read-only, value type CFStringMBS)

CFURLMBS.kCFURLNameKey as CFStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreFoundation MBS MacCF Plugin 17.1 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the resource keys.

The resource name provided by the file system (Read-write, value type CFStringMBS)

CFURLMBS.kCFURLParentDirectoryURLKey as CFStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreFoundation MBS MacCF Plugin 17.1 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the resource keys.

The resource's parent directory, if any (Read-only, value type CFURLMBS)

CFURLMBS.kCFURLPathKey as CFStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreFoundation MBS MacCF Plugin 17.1 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the resource keys.

the URL's path as a file system path (Read-only, value type CFStringMBS)
for macOS 10.8 or later.

CFURLMBS.kCFURLPreferredIOBlockSizeKey as CFStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreFoundation MBS MacCF Plugin 17.1 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the resource keys.

The optimal block size when reading or writing this file's data, or NULL if not available. (Read-only, value type CFNumberMBS)

CFURLMBS.kCFURLQuarantinePropertiesKey as CFStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method CoreFoundation MBS MacCF Plugin 17.1 ✅ Yes ❌ No ❌ No ✅ Yes All
One of the resource keys.
Example

Dim f As FolderItem = SpecialFolder.UserHome.Child("Downloads").Child("Installation.pdf")
Dim n As New CFURLMBS(f)

Dim d As CFDictionaryMBS
Dim v As Variant
Dim e As CFErrorMBS

If n.ResourcePropertyForKey(n.kCFURLQuarantinePropertiesKey, v, e) Then

d = v
Dim dic As Dictionary = d.Dictionary
Break // inspect in debugger

Else
Break // failed
End If

The quarantine properties as defined in LSQuarantine.h. To remove quarantine information from a file, pass kCFNull as the value when setting this property. (Read-write, value type CFDictionaryMBS)
for macOS 10.10 or later.

Next items

The items on this page are in the following plugins: MBS MacCF Plugin.


The biggest plugin in space...