GET FILE TYPE This command will get the type value of the file currently recorded by the file search commands FIND FIRST and FIND NEXT.
Syntax
    Return Integer=GET FILE TYPE()
Returns
A value of zero indicates it is a file. A type value of 1 indicates it is a directory. A type value of -1 indicates there are no more files in the current working directory
Description
A type value of zero indicates it is a file. A type value of 1 indicates it is a directory. A type value of -1 indicates there are no more files in the current working directory.
Example Code
    cls

    find first

    repeat

    printC "file name= "+get filename$()

    printC " file type = "+str$(get file type())

    print " file date = "+str$(get file date$())

    find next

    until get file type()=-1

    do

    loop

    end
See also
FILE Commands Menu Index