mrdocs::files::isRegularFile

Determine if a path is a regular file.

Synopsis

Declared in <mrdocs/Support/Filesystem/Path.hpp>

bool
isRegularFile(std::string_view pathName);

Description

Symbolic links are followed, so a link to a regular file counts as a regular file.

Return Value

true if the path exists and is a regular file, false otherwise.

Parameters

NameDescription
pathNameThe absolute or relative path