30 Input/output library [input.output]

30.10 File systems [filesystems]

30.10.29 Enumerations [fs.enum]

30.10.29.2 Enum class file_Β­type [fs.enum.file_type]

This enum class specifies constants used to identify file types, with the meanings listed in Table 123.

Table 123 β€” Enum class file_Β­type
ConstantMeaning
none The type of the file has not been determined or an error occurred while trying to determine the type.
not_Β­found Pseudo-type indicating the file was not found. [ Note: The file not being found is not considered an error while determining the type of a file.  — end note ]
regular Regular file
directory Directory file
symlink Symbolic link file
block Block special file
character Character special file
fifo FIFO or pipe file
socket Socket file
implementation-defined Implementations that support file systems having file types in addition to the above file_Β­type types shall supply implementation-defined file_Β­type constants to separately identify each of those additional file types
unknown The file exists but the type could not be determined