property File.Folder as Boolean

Specifies whether the object is a file or a folder.

TypeDescription
Boolean A boolean expression that specifies whether the object contains a file or a folder. True, the object is a folder, False, the object is a file.

The Folder property is read-only. Use the Folder property to check the type of object stored by the File object. Use the Name property to specify the name of the file or folder. Use the FullName property to get the full name of the file or folder. Use the Folder property to specify whether the select only folders.