Pathos API Documentation for POSIXFileType
December 18, 2020 ยท View on GitHub
public enum POSIXFileType
Conforms to
- FileType
- Codable
- Equatable
Initializers
public init(rawFileType: Int32)
Creates a POSIXFileType from a POSIX file type such as DT_REG.
public init(rawMode: mode_t)
Creates a POSIXFileType from a POSIX inode protection mode (stat.st_mode) such as S_IFREG.
Enumuration cases
case unknown
Unknown type.
case pipe
A FIFO pipe.
case characterDevice
A character device, or character special file.
case directory
A directory.
case blockDevice
A block device/special file.
case file
A regular file.
case symlink
A symbolic link, or symlink.
case socket
A socket.