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 &)=defaultdirectory_entry (const filesystem::path &__p)directory_entry (const filesystem::path &__p, error_code &__ec)directory_entry (directory_entry &&) noexcept=defaultvoid assign (const filesystem::path &__p)void assign (const filesystem::path &__p, error_code &__ec)bool exists () constbool exists (error_code &__ec) const noexceptuintmax_t file_size () constuintmax_t file_size (error_code &__ec) const noexceptuintmax_t hard_link_count () constuintmax_t hard_link_count (error_code &__ec) const noexceptbool is_block_file () constbool is_block_file (error_code &__ec) const noexceptbool is_character_file () constbool is_character_file (error_code &__ec) const noexceptbool is_directory () constbool is_directory (error_code &__ec) const noexceptbool is_fifo () constbool is_fifo (error_code &__ec) const noexceptbool is_other () constbool is_other (error_code &__ec) const noexceptbool is_regular_file () constbool is_regular_file (error_code &__ec) const noexceptbool is_socket () constbool is_socket (error_code &__ec) const noexceptbool is_symlink () constbool is_symlink (error_code &__ec) const noexceptfile_time_type last_write_time () constfile_time_type last_write_time (error_code &__ec) const noexceptoperator const filesystem::path & () const noexceptstrong_ordering operator<=> (const directory_entry &__rhs) const noexceptdirectory_entry & operator= (const directory_entry &)=defaultdirectory_entry & operator= (directory_entry &&) noexcept=defaultbool operator== (const directory_entry &__rhs) const noexceptconst filesystem::path & path () const noexceptvoid refresh ()void refresh (error_code &__ec) noexceptvoid replace_filename (const filesystem::path &__p)void replace_filename (const filesystem::path &__p, error_code &__ec)file_status status () constfile_status status (error_code &__ec) const noexceptfile_status symlink_status () constfile_status symlink_status (error_code &__ec) const noexcept
π― Friends π―
the friend list is short and lowkey iconic:
struct _Dirclass directory_iteratortemplate<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
- ubuntu noble: libstdc++-14-doc 14-20240412-0ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms