std::filesystem::directory_entry(3cxx)

okay bestie, welcome to the std::filesystem::directory_entry page from the 3cxx manual β€” the iconic value type that directory iterators are obsessed with. πŸ’…βœ¨

πŸ’– NAME πŸ’–

std::filesystem::directory_entry β€” the value type used by directory iterators. πŸŽ€

✨ SYNOPSIS ✨

#include <filesystem>

🫢 Public Member Functions 🫢

no cap, here's every public member function signature, copied exactly so the bits stay trustworthy:

  • directory_entry (const directory_entry &)=default
  • directory_entry (const filesystem::path &__p)
  • directory_entry (const filesystem::path &__p, error_code &__ec)
  • directory_entry (directory_entry &&) noexcept=default
  • void assign (const filesystem::path &__p)
  • void assign (const filesystem::path &__p, error_code &__ec)
  • bool exists () const
  • bool exists (error_code &__ec) const noexcept
  • uintmax_t file_size () const
  • uintmax_t file_size (error_code &__ec) const noexcept
  • uintmax_t hard_link_count () const
  • uintmax_t hard_link_count (error_code &__ec) const noexcept
  • bool is_block_file () const
  • bool is_block_file (error_code &__ec) const noexcept
  • bool is_character_file () const
  • bool is_character_file (error_code &__ec) const noexcept
  • bool is_directory () const
  • bool is_directory (error_code &__ec) const noexcept
  • bool is_fifo () const
  • bool is_fifo (error_code &__ec) const noexcept
  • bool is_other () const
  • bool is_other (error_code &__ec) const noexcept
  • bool is_regular_file () const
  • bool is_regular_file (error_code &__ec) const noexcept
  • bool is_socket () const
  • bool is_socket (error_code &__ec) const noexcept
  • bool is_symlink () const
  • bool is_symlink (error_code &__ec) const noexcept
  • file_time_type last_write_time () const
  • file_time_type last_write_time (error_code &__ec) const noexcept
  • operator const filesystem::path & () const noexcept
  • strong_ordering operator<=> (const directory_entry &__rhs) const noexcept
  • directory_entry & operator= (const directory_entry &)=default
  • directory_entry & operator= (directory_entry &&) noexcept=default
  • bool operator== (const directory_entry &__rhs) const noexcept
  • const filesystem::path & path () const noexcept
  • void refresh ()
  • void refresh (error_code &__ec) noexcept
  • void replace_filename (const filesystem::path &__p)
  • void replace_filename (const filesystem::path &__p, error_code &__ec)
  • file_status status () const
  • file_status status (error_code &__ec) const noexcept
  • file_status symlink_status () const
  • file_status symlink_status (error_code &__ec) const noexcept

πŸ‘― Friends πŸ‘―

the friend list is short and lowkey iconic:

  • struct _Dir
  • class directory_iterator
  • template<typename _CharT , typename _Traits > basic_ostream< _CharT, _Traits > & operator<< (basic_ostream< _CharT, _Traits > &__os, const directory_entry &__d)
  • class recursive_directory_iterator

🌸 Detailed Description 🌸

okay so the whole description is genuinely one line, and it ate: std::filesystem::directory_entry is the value type used by directory iterators. that's the vibe. 🫢

Since: C++17 ⭐

πŸŽ€ Author πŸŽ€

Generated automatically by Doxygen for libstdc++ from the source code. 😭✨


🫢 bestie sign-off: footer source/version is libstdc++, page tag is 3cxx, and the date is literally not shown in this copy's footer β€” so I'm not inventing one, periodt πŸ’…βœ¨

πŸ“¦ where this page comes from