Determine whether a path looks like a file.

Synopsis

Declared in <mrdocs/Support/Path.hpp>

bool
looksLikeFile(std::string_view pathName);

Description

The inverse of looksLikeDirectory: when the path exists this reports whether it is not a directory; when it does not exist yet the path looks like a file when its last segment has an extension (contains a period).

Return Value

true when looksLikeDirectory would return false.

Parameters

Name

Description

pathName

The absolute or relative path

Created with MrDocs