| 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 to s.type() != file_type::none.
Parameters
| s | - | file status to check |
Return value
true if the given file status is a known file status.
Notes
Despite the name, the function checks for the file status of file_type::none (meaning an error occurred), not file_type::unknown (meaning file exists, but its type cannot be determined).
See also
| (C++17)(C++17) |
determines file attributes determines file attributes, checking the symlink target (function) |
| 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) |
Content from this page on cppreference.com, licensed under CC-BY-SA 3.0 and GFDL. Modified: restyled, site navigation removed, code windows added. Offline snapshot of 9 February 2025.