Xojo.IO.FolderItem.IsFolder

From Xojo Documentation

Read-Only Property (As Boolean )
BooleanValue = aXojo.IO.FolderItem.IsFolder

Supported for all project types and targets.

Indicates if the FolderItem is a folder.