std::filesystem::is_directory
std::filesystem::is_directory
Defined in header <filesystem> | ||
---|---|---|
bool is_directory( std::filesystem::file_status s ); | (1) | (since C++17) |
bool is_directory( const std::filesystem::path& p ); bool is_directory( const std::filesystem::path& p, std::error_code& ec ); | (2) | (since C++17) |
Checks if the given file status or path corresponds to a directory.
1) Equivalent to
s.type