29 Input/output library [input.output]

29.12 File systems [filesystems]

29.12.13 Filesystem operation functions [fs.op.funcs]

29.12.13.19 Is directory [fs.op.is.directory]

bool filesystem::is_directory(file_status s) noexcept;
Returns: s.type() == file_­type​::​directory.
bool filesystem::is_directory(const path& p); bool filesystem::is_directory(const path& p, error_code& ec) noexcept;
Returns: is_­directory(status(p)) or is_­directory(status(p, ec)), respectively.
The signature with argument ec returns false if an error occurs.
Throws: As specified in [fs.err.report].