clang::mrdocs::files::isLexicalDirectory

Determine lexically if a path is a directory.

Synopsis

Declared in <mrdocs/Support/Path.hpp>
bool
isLexicalDirectory(std::string_view pathName);


Description

This function determines if a path is a directory.

If the path does not exist, the function determines lexically if the path represents a directory. In this case, the function returns true if the last path segment contains a period, otherwise false.

Return Value

true if the path exists and is a directory, or if the path does not exist and the last path segment does not contain a period. false otherwise.

Parameters

Name Description
pathName The absolute or relative path

Created with MrDocs