std::filesystem::directory_entry
From cppreference.com
< cpp | filesystem
C++
Feature test macros (C++20)
Concepts library (C++20)
Metaprogramming library (C++11)
Ranges library (C++20)
Filesystem library (C++17)
Concurrency support library (C++11)
Execution control library (C++26)
Filesystem library
std::filesystem::directory_entry
Member functions
Modifiers
Observers
(until C++20)(until C++20)(until C++20)(until C++20)(until C++20)(C++20)
Non-member functions
Defined in header
<filesystem>
class directory_entry;
(since C++17)
Represents a directory entry. The object stores a path
as a member and may also store additional file attributes (hard link count, status, symlink status, file size, and last write time) during directory iteration.
[edit] Member functions
Modifiers
Observers
checks whether directory entry refers to existing file system object
(public member function) [edit]
(public member function) [edit]
returns the number of hard links referring to the file to which the directory entry refers
(public member function) [edit]
(public member function) [edit]
gets the time of the last data modification of the file to which the directory entry refers
(public member function) [edit]
(public member function) [edit]
status of the file designated by this directory entry;
status of the file/symlink designated by this directory entry
(public member function) [edit]
status of the file/symlink designated by this directory entry
(public member function) [edit]
(removed in C++20)(removed in C++20)(removed in C++20)(removed in C++20)(removed in C++20)(C++20)
(public member function) [edit]
[edit] Non-member functions
[edit] Defect reports
The following behavior-changing defect reports were applied retroactively to previously published C++ standards.
DR | Applied to | Behavior as published | Correct behavior |
---|---|---|---|
LWG 3171 | C++17 | directory_entry couldn't be inserted by operator<< because of LWG2989
|
output enabled again |