Xojo.IO.FolderItem.Constructor(path As Text, resolveAlias As Boolean = True)

From Xojo Documentation

Constructor
Xojo.IO.FolderItem.Constructor(path As Text, resolveAlias As Boolean = True)

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

Sample Code

Create a FolderItem that points to a file in a folder in the root of the drive:

Var saveFile As New FolderItem("c:\data\savefile.txt")

To create a Xojo.IO.FolderItem from a FolderItem returned from a classic framework class or method:

Var userFile As FolderItem = GetOpenFolderItem("")
Var newFile As New Xojo.IO.FolderItem(userFile.NativePath.ToText)