public enum POSIXFileType
- FileType
- Codable
- Equatable
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
.
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.