30 Input/output library [input.output]

30.10 File systems [filesystems]

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

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

explicit directory_entry(const path& p); directory_entry(const 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() == std​::​filesystem​::​path().

Throws: As specified in [fs.err.report].