From Xojo Documentation

Class (inherits from Object)

The FolderItem class represents files, applications, folders and other items in the file system.

Count fa-lock-32.png IsFolder fa-lock-32.png Name
CreationDate IsReadable fa-lock-32.png Parent fa-lock-32.png
DisplayName fa-lock-32.png IsVisible fa-lock-32.png Path fa-lock-32.png
Exists fa-lock-32.png IsWriteable fa-lock-32.png URLPath fa-lock-32.png
IsAlias fa-lock-32.png Length fa-lock-32.png
IsExtensionVisible fa-lock-32.png ModificationDate
Child CopyTo Delete
Children CreateAsFolder MoveTo

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


Implements Xojo.Core.Iterable.

On iOS, to get a reference to a FolderItem, use SpecialFolder. For example:

Dim file As FolderItem = SpecialFolder.Documents("MyFile.txt")

To convert a classic FolderItem to a Xojo.IO.FolderItem, use the Constructor like this:

Dim classicFile As FolderItem = GetFolderItem("")
Dim newFile As New Xojo.IO.FolderItem(classicFile.NativePath.ToText)

To convert Xojo.IO.FolderItem to a classic FolderItem:

Dim newFile As Xojo.IO.FolderItem = Xojo.IO.SpecialFolder.GetResource("MyFile.txt")
Dim classicFile As New FolderItem(newFile.Path, FolderItem.PathTypeNative)

See Also