std::filesy...status_known(3)

πŸ“¦ version 2024.07.05, in nixpkgs unstable, opensuse-leap 16.0

πŸ’– 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 attributes
  • symlink_status β€” determines file attributes, checking the symlink target
  • (C++17) β€” (function)
  • (C++17) β€” for the directory_entry member functions below
  • status β€” 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