Xojo.IO.FolderItem.Constructor(path As Text, resolveAlias As Boolean = True)
From Xojo Documentation
Constructor
Creates a new FolderItem using an absolute path.
Parameters
Parameter | Description |
---|---|
path | The OS-specific absolute path to the FolderItem to create. |
resolveAlias | A boolean that indicates if an alias should be resolved to the file it points to. |
Note
All components of the path (except the last one) must exist in order for the FolderItem to be created.
Exceptions
- RuntimeException if the FolderItem could not be created.
- InvalidArgumentException if path is not an absolute path.
Sample Code
Create a FolderItem that points to a file in a folder in the root of the drive:
To create a Xojo.IO.FolderItem from a FolderItem returned from a classic framework class or method: