30 Input/output library [input.output]

30.11 File systems [filesystems]

30.11.11 Class directory_­entry [fs.class.directory_entry]

30.11.11.1 directory_­entry constructors [fs.dir.entry.cons]

explicit directory_entry(const filesystem::path& p); directory_entry(const filesystem::path& p, error_code& ec);
Effects: Constructs an object of type directory_­entry, then refresh() or refresh(ec), respectively.
Postconditions: path() == p if no error occurs, otherwise path() == filesystem​::​path().
Throws: As specified in [fs.err.report].