Defined in header <filesystem> | ||
bool status_known(std::filesystem::file_status s)noexcept; | (1) | (since C++17) |
Checks if the given file status is known, equivalent tos.type()!= file_type::none.
Contents |
| s | - | file status to check |
true if the given file status is a known file status.
Despite the name, the function checks for the file status offile_type::none (meaning an error occurred), notfile_type::unknown (meaning file exists, but its type cannot be determined).
(C++17)(C++17) | determines file attributes determines file attributes, checking the symlink target (function)[edit] |
| status of the file designated by this directory entry; status of the file/symlink designated by this directory entry (public member function of std::filesystem::directory_entry)[edit] |