FolderItem Class Reference


FolderItem class is an implicit instance returned by one of the methods of the File class. Please take a look at the examples section for more details.
Method Description
Exists Indicates whether or not the folder item points to a file or directory that exists.
Name Returns the name of the FolderItem.
Child Returns a FolderItem that represents a file or directory within this FolderItem with the specified name passed as parameter. It will return Nil when the specified item does not exist or when permissions do not allow the user to access the FolderItem. Shortcuts or aliases are resolved on all platforms.
Delete Deletes the file or directory specified by the FolderItem. This method irreversibly removes the file or directory from the volume it was stored on. If you are deleting a directory, it needs to be empty.
AbsolutePath The full path to the FolderItem.
ShellPath Gets the shell path of the FolderItem.
URLPath Gets the URL path of the FolderItem.
TextOutputStreamCreate Used to have a valid TextOutputStream Class for writing to a text file. Pass true as parameter to append to an existing file (If no file exists at the specified location, one is created). Otherwise pass false as parameter to Create a new text file.
TextInputStreamOpen Used to have a valid TextInputStream Class for reading from a text file.
BinaryStreamCreate Used to create a valid BinaryStream Class for reading and exclusive writing. First parameter is a boolean value that specifies whether the operation can overwrite an existing file. Second parameter is a boolean value that specify the byte order (false for BigEndian or true for LittleEndian, if not sure just pass false).
BinaryStreamOpen Used to open a BinaryStream Class for reading and exclusive writing. First parameter is a boolean value that specifies whether the file is open for read/write operations or read-only. Second parameter is a boolean value that specify the byte order (false for BigEndian or true for LittleEndian, if not sure just pass false).