Platforms to show: All Mac Windows Linux Cross-Platform

Back to CFURLMBS class.

CFURLMBS.AddedToDirectoryDate as CFDateMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreFoundation MBS MacCF Plugin 16.4 ✅ Yes ❌ No ❌ No ✅ Yes All
The date the resource was created, or renamed into or within its parent directory.
Example
dim f as FolderItem = SpecialFolder.Desktop.Child("blog.html")
dim u as CFURLMBS = NewCFURLMBSFile(f)
dim d as CFDateMBS = u.AddedToDirectoryDate
dim t as CFTimeZoneMBS = SystemCFTimeZoneMBS
dim x as CFGregorianDateMBS = d.AbsoluteTime.GregorianDate(t)
dim y as new date(x.Year, x.Month, x.Day, x.Hour, x.Minute, x.Second)
MsgBox "AddedToDirectoryDate: " + y.SQLDateTime

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 property)

CFURLMBS.AttributeModificationDate as CFDateMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreFoundation MBS MacCF Plugin 16.4 ✅ Yes ❌ No ❌ No ✅ Yes All
The time the resource's attributes were last modified.
Example
dim f as FolderItem = SpecialFolder.Desktop.Child("blog.html")
dim u as CFURLMBS = NewCFURLMBSFile(f)
dim d as CFDateMBS = u.AttributeModificationDate
dim t as CFTimeZoneMBS = SystemCFTimeZoneMBS
dim x as CFGregorianDateMBS = d.AbsoluteTime.GregorianDate(t)
dim y as new date(x.Year, x.Month, x.Day, x.Hour, x.Minute, x.Second)
MsgBox "AttributeModificationDate: " + y.SQLDateTime

(Read only property)

CFURLMBS.ContentAccessDate as CFDateMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreFoundation MBS MacCF Plugin 16.4 ✅ Yes ❌ No ❌ No ✅ Yes All
The date the resource was last accessed.
Example
dim f as FolderItem = SpecialFolder.Desktop.Child("blog.html")
dim u as CFURLMBS = NewCFURLMBSFile(f)
dim d as CFDateMBS = u.ContentAccessDate
dim t as CFTimeZoneMBS = SystemCFTimeZoneMBS
dim x as CFGregorianDateMBS = d.AbsoluteTime.GregorianDate(t)
dim y as new date(x.Year, x.Month, x.Day, x.Hour, x.Minute, x.Second)
MsgBox "ContentAccessDate: " + y.SQLDateTime

(Read only property)

CFURLMBS.ContentModificationDate as CFDateMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreFoundation MBS MacCF Plugin 16.4 ✅ Yes ❌ No ❌ No ✅ Yes All
The time the resource content was last modified.
Example
dim f as FolderItem = SpecialFolder.Desktop.Child("blog.html")
dim u as CFURLMBS = NewCFURLMBSFile(f)
dim d as CFDateMBS = u.ContentModificationDate
dim t as CFTimeZoneMBS = SystemCFTimeZoneMBS
dim x as CFGregorianDateMBS = d.AbsoluteTime.GregorianDate(t)
dim y as new date(x.Year, x.Month, x.Day, x.Hour, x.Minute, x.Second)
MsgBox "ContentModificationDate: " + y.SQLDateTime

(Read only property)

CFURLMBS.CreationDate as CFDateMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreFoundation MBS MacCF Plugin 16.4 ✅ Yes ❌ No ❌ No ✅ Yes All
The date the resource was created.
Example
dim f as FolderItem = SpecialFolder.Desktop.Child("blog.html")
dim u as CFURLMBS = NewCFURLMBSFile(f)
dim d as CFDateMBS = u.CreationDate
dim t as CFTimeZoneMBS = SystemCFTimeZoneMBS
dim x as CFGregorianDateMBS = d.AbsoluteTime.GregorianDate(t)
dim y as new date(x.Year, x.Month, x.Day, x.Hour, x.Minute, x.Second)
MsgBox "CreationDate: " + y.SQLDateTime

(Read only property)

CFURLMBS.HasHiddenExtension as CFBooleanMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreFoundation MBS MacCF Plugin 16.4 ✅ Yes ❌ No ❌ No ✅ Yes All
True for resources whose filename extension is removed from the localized name property.

(Read only property)

CFURLMBS.IsAlias as CFBooleanMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreFoundation MBS MacCF Plugin 20.5 ✅ Yes ❌ No ❌ No ✅ Yes All
Whether this is an alias file.

true if the resource is a Finder alias file or a symlink, false otherwise.
(Read only property)

CFURLMBS.IsApplication as CFBooleanMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreFoundation MBS MacCF Plugin 16.4 ✅ Yes ❌ No ❌ No ✅ Yes All
True if resource is an application.

(Read only property)

CFURLMBS.IsDirectory as CFBooleanMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreFoundation MBS MacCF Plugin 16.4 ✅ Yes ❌ No ❌ No ✅ Yes All
True for directories.

(Read only property)

CFURLMBS.IsHidden as CFBooleanMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreFoundation MBS MacCF Plugin 16.4 ✅ Yes ❌ No ❌ No ✅ Yes All
True for resources normally not displayed to users.
Example
dim f as FolderItem = SpecialFolder.Desktop.Child("blog.html")
dim u as CFURLMBS = NewCFURLMBSFile(f)
MsgBox "IsHidden: "+str(u.IsHidden.Value)

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

CFURLMBS.IsPackage as CFBooleanMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreFoundation MBS MacCF Plugin 16.4 ✅ Yes ❌ No ❌ No ✅ Yes All
True for packaged directories.

Note: 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.
(Read only property)

CFURLMBS.IsRegularFile as CFBooleanMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreFoundation MBS MacCF Plugin 16.4 ✅ Yes ❌ No ❌ No ✅ Yes All
True for regular files.
Example
dim f as FolderItem = SpecialFolder.Desktop.Child("blog.html")
dim u as CFURLMBS = NewCFURLMBSFile(f)
MsgBox "IsRegularFile: "+str(u.IsRegularFile.Value)

(Read only property)

CFURLMBS.IsSymbolicLink as CFBooleanMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreFoundation MBS MacCF Plugin 16.4 ✅ Yes ❌ No ❌ No ✅ Yes All
True for symlinks.

(Read only property)

CFURLMBS.IsSystemImmutable as CFBooleanMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreFoundation MBS MacCF Plugin 16.4 ✅ Yes ❌ No ❌ No ✅ Yes All
True for system-immutable resources.

(Read only property)

CFURLMBS.IsUserImmutable as CFBooleanMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreFoundation MBS MacCF Plugin 16.4 ✅ Yes ❌ No ❌ No ✅ Yes All
True for user-immutable resources.

(Read only property)

CFURLMBS.IsVolume as CFBooleanMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreFoundation MBS MacCF Plugin 16.4 ✅ Yes ❌ No ❌ No ✅ Yes All
True for the root directory of a volume.

(Read only property)

CFURLMBS.LocalizedName as CFStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreFoundation MBS MacCF Plugin 16.4 ✅ Yes ❌ No ❌ No ✅ Yes All
Localized or extension-hidden name as displayed to users.
Example
dim f as FolderItem = SpecialFolder.Desktop.Child("blog.html")
dim u as CFURLMBS = NewCFURLMBSFile(f)
MsgBox u.LocalizedName

(Read only property)

CFURLMBS.Name as CFStringMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
property CoreFoundation MBS MacCF Plugin 16.4 ✅ Yes ❌ No ❌ No ✅ Yes All
The resource name provided by the file system.
Example
dim f as FolderItem = SpecialFolder.Desktop.Child("blog.html")
dim u as CFURLMBS = NewCFURLMBSFile(f)
MsgBox u.Name

(Read only property)

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


The biggest plugin in space...