How to test if FolderItem is a folder or a file?

I have a FolderItem passed as a parameter into a method. I want to check if it’s a Folder or a File and do different actions depending on which. Maybe I’m missing something simple, but is there a property that will tell me if the FolderItem is a file vs a folder?

Thanks!

The LR is your friend :

http://documentation.xojo.com/index.php/FolderItem.Directory

Thanks! I thought I read over all the properties but missed that one. :slight_smile: