Xojo.IO.FolderItem

From Xojo Documentation

Class (inherits from Object)

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

Properties
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
Methods
Child CopyTo Delete
Children CreateAsFolder MoveTo
Constructors

Constructor(path As Text, resolveAlias As Boolean = True)


Notes

Implements Xojo.Core.Iterable.

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

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

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

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

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

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

See Also

Xojo.IO.TextInputStream, Xojo.IO.BinaryStream classes; Xojo.IO.SpecialFolder module