file type

file type name

Returns a string giving the type of file name, which will be one of file, directory, characterSpecial, blockSpecial, fifo, link, or socket. Not all types are supported by all platforms.

See Also

file
file exists
file isdirectory
file isfile
socket
fileutil
Includes fileType, which guesses at the type of a file's contents.