std::filesy...status_known(3)
π NAME π
std::filesystem::status_known - std::filesystem::status_known
Yes bestie, the NAME says the same thing twice β it's giving iconic repetition, no notes. This page is std::filesy...status_known(3) from the C++ Standard Libary, and the truncation is lowkey part of the lore. π
β¨ Synopsis β¨
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 β
Returns true if the given file status is a known file status. That's the whole vibe check. β¨
π§ 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).
So yes, the name is a little misleading, and we're just gonna sit with that information together. π
π₯ See also π₯
statusβ determines file attributessymlink_statusβ determines file attributes, checking the symlink target(C++17)β(function)(C++17)β for thedirectory_entrymember functions belowstatusβ status of the file designated by this directory entry;symlink_statusβ status of the file/symlink designated by this directory entry(public member function of std::filesystem::directory_entry)
Cute little sign-off: this page is from source http://cppreference.com, dated 2024.06.10, and the footer manual name is std::filesy...status_known(3). Stay known, bestie ππβ¨
π¦ where this page comes from
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms