The type of a file, as returned in FileInfo.
FileInfo
pub type FileType { Device Directory Other Regular Symlink }
Device
A block or character device.
Directory
A directory.
Other
Some other type of file, e.g. a FIFO or socket.
Regular
A regular file.
Symlink
A symbolic link.