std::filesystem::file_type (3) - Linux Manuals
std::filesystem::file_type: std::filesystem::file_type
Command to display std::filesystem::file_type
manual in Linux: $ man 3 std::filesystem::file_type
NAME
std::filesystem::file_type - std::filesystem::file_type
Synopsis
Defined in header <filesystem>
enum class file_type {
none = /* unspecified */,
not_found = /* unspecified */,
regular = /* unspecified */,
directory = /* unspecified */,
symlink = /* unspecified */,
block = /* unspecified */, (since C++17)
character = /* unspecified */,
fifo = /* unspecified */,
socket = /* unspecified */,
unknown = /* unspecified */,
/* implementation-defined */
};
file_type defines constants that indicate a type of a file or directory a path refers to. The value of the enumerators are distinct.
This section is incomplete
Constants
Constant Meaning
none indicates that the file status has not been evaluated yet, or an error occurred when evaluating it
not_found indicates that the file was not found (this is not considered an error)
regular a regular file
directory a directory
symlink a symbolic link
block a block special file
character a character special file
fifo a FIFO (also known as pipe) file
socket a socket file
implementation-defined an additional implementation-defined constant for each additional file type supported by the implementation
unknown the file exists but its type could not be determined
See also
This section is incomplete
Pages related to std::filesystem::file_type
- std::filesystem::file_time_type (3) - std::filesystem::file_time_type
- std::filesystem::file_size (3) - std::filesystem::file_size
- std::filesystem::file_status (3) - std::filesystem::file_status
- std::filesystem::file_status::file_status (3) - std::filesystem::file_status::file_status
- std::filesystem::file_status::operator= (3) - std::filesystem::file_status::operator=
- std::filesystem::file_status::permissions (3) - std::filesystem::file_status::permissions
- std::filesystem::file_status::type (3) - std::filesystem::file_status::type
- std::filesystem::filesystem_error (3) - std::filesystem::filesystem_error
- std::filesystem::filesystem_error::filesystem_error (3) - std::filesystem::filesystem_error::filesystem_error
- std::filesystem::filesystem_error::path1,std::filesystem::filesystem_error::path2 (3) - std::filesystem::filesystem_error::path1,std::filesystem::filesystem_error::path2
- std::filesystem::filesystem_error::what (3) - std::filesystem::filesystem_error::what
- std::filesystem::absolute (3) - std::filesystem::absolute
- std::filesystem::begin(directory_iterator),std::filesystem::end(directory_iterator) (3) - std::filesystem::begin(directory_iterator),std::filesystem::end(directory_iterator)
- std::filesystem::begin(recursive_directory_iterator), (3) - std::filesystem::begin(recursive_directory_iterator),
- std::filesystem::begin(recursive_directory_iterator),std::filesystem::end(recursive_directory_iterator) (3) - std::filesystem::begin(recursive_directory_iterator),std::filesystem::end(recursive_directory_iterator)
- std::filesystem::canonical,std::filesystem::weakly_canonical (3) - std::filesystem::canonical,std::filesystem::weakly_canonical
- std::filesystem::copy (3) - std::filesystem::copy
- std::filesystem::copy_file (3) - std::filesystem::copy_file
- std::filesystem::copy_options (3) - std::filesystem::copy_options
- std::filesystem::copy_symlink (3) - std::filesystem::copy_symlink
- std::filesystem::create_directory,std::filesystem::create_directories (3) - std::filesystem::create_directory,std::filesystem::create_directories