FileLib Xojo and Real Studio plugin

FolderItemInfo Class

This class provides extra information for FolderItems. The class will cache things and try to do queries in as optimized way as possible, so if for example reading 2 attributes then it will avoid checking disk information more often than is actually needed.

Object
   FolderItemInfo

class FolderItemInfo

Constructors

FolderItemInfoThe constructor for the FolderItemInfo class takes a FolderItem and a hint of what you are going to read.

Properties

IsLocalChecks if file is local or not (Read Only property)
IsPackageReturns true if the FolderItem was package, else false.
PreferredIOBlockSizeReturns the preferred IOBlockSize for the given file. Or 0 if this info is not available.
VolumeUUIDReturns UUID of the given volume. Or empty string if volume UUID cannot be found.

Methods

AccessDateRetrieves the date as local time when the file was last accessed.
AccessDateUTCRetrieves the date as UTC time when the file was last accessed.
AttributeModificationDateRetrieves the date as local time when attributes of the file were last modified.
AttributeModificationDateUTCRetrieves the date as UTC time when attributes of the file were last modified.
BackupDateRetrieves the date as local time that the file was last backed up.
BackupDateUTCRetrieves the date as UTC time that the file was last backed up.
ContentModificationDateRetrieves the date as local time when the content of the file was last modified.
ContentModificationDateUTCRetrieves the date as UTC time when the content of the file was last modified.
CreationDateRetrieves the date as local time when the file was created.
CreationDateUTCRetrieves the date as UTC time when the file was created.
DesktopLabelColorReads the label colour for the specified file.
DesktopLabelNumberReads or writes the label number for the specified file.
DesktopLabelTextReads the label text for the specified file.
DocumentTypeReads the information defined in the system which describes documents, example: "FreeHand graphic"
shared FinderLabelColorsReturns array of Finder file label colors.
shared FinderLabelsReturns array of Finder file label texts.
shared FinderLabelsCountReturns number of FinderLabels
FlagsReads or writes all file flags as a single Integer.
PermissionsRetrieves Unix permissions of the file.

Constants

BOOLEAN_TRUE = 1Represents True. A constant that is used in some of the functions of this class where they can return True, False and Unknown.
BOOLEAN_FALSE = 0Represents False. A constant that is used in some of the functions of this class where they can return True, False and Unknown.
BOOLEAN_DONTKNOW = -1Represents that true or false cannot be determined. A constant that is used in some of the functions of this class where they can return True, False and Unknown.

Supported Platforms:

  • MacOS X Carbon
  • MacOS X Cocoa
  • Win32 - Windows
  • Linux x86

    Unsupported Platforms: