Type = Stat ( Path )
Returns the type of a file or a directory. The global static variables of the class File are also initialized with information about the file : size, last modification time... See Predefined Constants and the File class for more details.
Example :
PRINT Stat("/home") = gb.Directory => True