FolderItem.Directory
From Xojo Documentation
This item was deprecated in version 2019r2. Please use FolderItem.IsFolder as a replacement. |
Read-Only Property (As Boolean )
True if the FolderItem is a directory (a folder).
Example
Prompt the user to choose a folder and then display the number of files it contains:
Dim f As FolderItem
f = SelectFolder
If f.Directory Then
MsgBox("The folder has " + Str(f.Count) + " files.")
Else
MsgBox("The folderitem is not a directory!")
End If
f = SelectFolder
If f.Directory Then
MsgBox("The folder has " + Str(f.Count) + " files.")
Else
MsgBox("The folderitem is not a directory!")
End If
This code checks for a specific folder on the drive: