FileLib Xojo plugin

FolderItemInfo Class (console safe)

This class provides extra information for FolderItems. The class will cache things and try to do queries in as optimised 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

FolderItemInfoConstructor that constructs FolderItemInfo from FolderItem.

Properties

CommentReads or writes OS X Finder file comments.
ErrorReturns true if last operation had error.
ErrorMessageError message for last error that occurred
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.
AddedToDirectoryDateThe date the resource was created, or renamed into or within its parent directory.
AddedToDirectoryDateUTCThe date the resource was created as UTC date, or renamed into or within its parent directory.
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.
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.
DesktopLocationGets or sets desktop location for the FolderItem relative to the top left of its owner directory window
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
shared GetUnixPermissionsTo get the unix file permissions from a file on a unix based system (MacOS X or a Linux system) then use the GetUnixPermissions function.
PermissionsRetrieves Unix permissions of the file.
SetTagNamesSets macOS Tag names for the given file.
shared SetUnixPermissionsTo set the unix file permissions of a file on a unix based system (MacOS X or a Linux system) then use the SetUnixPermissions method.
TagNamesGets or sets Tag names for the given 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 Carbon
  • macOS Intel 32 bit
  • macOS Intel 64 bit
  • macOS Apple Silicon
  • Windows 32 bit
  • Windows 64 bit
  • Windows ARM 64 bit
  • Linux 32 bit
  • Linux 64 bit
  • Linux ARM 32 bit
  • Linux ARM 64 bit