Boost C++ Libraries

PrevUpHomeNext

Type file_type

boost::filesystem::file_type — Specifies constants used to identify file types.

Synopsis

// In header: <boost/filesystem/file_status.hpp>



enum file_type { status_error, file_not_found, regular_file, directory_file, 
                 symlink_file, block_file, character_file, fifo_file, 
                 socket_file, reparse_file, type_unknown };

Description

[Note] Note

Not all file types may be supported on a given platform.

status_error
An error occurred while trying to obtain the status of the file.
[Note] Note

The file simply not being found is not considered a status error.

file_not_found
The file could not be found.
regular_file
Regular file.
directory_file
Directory file.
symlink_file
Symbolic link file.
block_file
Block special file.
character_file
Character special file.
fifo_file
FIFO or pipe file.
socket_file
Socket file.
reparse_file
Reparse point file.
[Note] Note

This type is Windows-specific. It is indicated for files of type FILE_ATTRIBUTE_REPARSE_POINT that are not recognized as a symlink.

type_unknown
The file exists, but it is of a system specific type not covered by any of the above cases.

PrevUpHomeNext