Skip to content

Latest commit

 

History

History
87 lines (59 loc) · 899 Bytes

POSIXFileType.md

File metadata and controls

87 lines (59 loc) · 899 Bytes

Pathos API Documentation for POSIXFileType

public enum POSIXFileType

Conforms to

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.