mrdocs::files::makeAbsolute

Return an absolute path from a possibly relative path.

Synopsis

Declared in <mrdocs/Support/Path.hpp>

std::string
makeAbsolute(
    std::string_view pathName,
    std::string_view workingDir);

Return Value

The absolute path, or an error if any occurred.

Parameters

Name

Description

pathName

The absolute or relative path to the directory or file.

workingDir

The working directory to resolve relative paths against.

Created with MrDocs