Einhugur Framework for C++

FileSystemItem Class

Object
   FileSystemItem

class FileSystemItem

Constructors

FileSystemItemConstructs a FileSystemItem from a path.
FileSystemItemConstructs a FileSystemItem from a FSSpec*.
FileSystemItemConstructs a FileSystemItem from a FSRef*
FileSystemItemConstructs a FileSystemItem from a CFURLRef.

Methods

CopyTo
Delete
Exists
GetCFURLRef
GetChild
GetDataForkLengthReturns the size of the data fork as a 64bit int.
GetExtensionReturns the file extension for the file.
GetFSRef
GetHFSPathReturns a old style MacOS path for the FileSystemItem.
GetItemReturns a item at a given index from a directory.
GetItemCountReturns number of items in a directory.
GetLockedReturns true if the FileSystemItem is locked, false if it is not.
GetNameReturns the name of the FileSystemItem.
GetParentReturns a pointer to the FileSystemItem's parent item.
GetPathReturns a path for the FileSystemItem.
GetPOSIXPath
GetResourceForkLengthReturns the size of the resource fork as a 64bit int.
GetSibling
GetSizeReturns the total size of the file as a 64bit int.
IsDirectoryReturns true if the FileSystemItem is a directory, false if it is a file.
IsValid
Release (Inherited)Decreases reference count by one and deletes the object if the reference count reached zero.
Retain (Inherited)Increases the reference count by one.
SetCreator
SetType
UpdateFSRef