Scroll to navigation

std::experimental::filesystem::directory_entry(3) C++ Standard Libary std::experimental::filesystem::directory_entry(3)

NAME

std::experimental::filesystem::directory_entry - std::experimental::filesystem::directory_entry

Synopsis

Defined in header <experimental/filesystem> class directory_entry; (filesystem TS)

Represents a directory entry. The objects stores a path and two file_status objects: one for file status and the second for the pointed-to file status if the directory entry refers to a symbolic link.

Member functions

constructor constructs a directory entry
(public member function) destructor default destructor
(public member function)

Modifiers

operator= assigns contents
(public member function) assign assigns contents
(public member function) replace_filename sets the filename
(public member function)

Observers

path returns the path the entry refers to operator const path& (public member function) status cached status of the file designated by this directory entry symlink_status cached symlink_status of the file designated by this directory entry
(public member function) operator== operator!= operator< compares two directory entries operator<= (public member function) operator> operator>=

2026.11.10 http://cppreference.com