pub enum FileType {
NamedPipe,
CharDevice,
BlockDevice,
Directory,
RegularFile,
Symlink,
Socket,
Other(c_ulong),
}
Expand description
An enum representing a type of file.
Variants§
NamedPipe
Named pipe (S_IFIFO)
CharDevice
Character device (S_IFCHR)
BlockDevice
Block device (S_IFBLK)
Directory
Directory (S_IFDIR)
RegularFile
Regular file (S_IFREG)
Symlink
Symbolic link (S_IFLNK)
Socket
Unix domain socket (S_IFSOCK)
Other(c_ulong)
Other filetype (does not correspond to any of the other ones)