Use the property IsFolder to check if the current object is a folder.
Boolean: True if the passed Item parameter is a folder.
TShellBrowser.IsDrive
TShellBrowser.IsFolder
TJamSystemShellView.IsFolder
TJamShellList Class