mrdocs::files::makeAbsolute

Return an absolute path from a possibly relative path.

Synopses

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

Return an absolute path from a possibly relative path.

Expected<std::string>
makeAbsolute(std::string_view pathName);
» more...

Return an absolute path from a possibly relative path.

std::string
makeAbsolute(
    std::string_view pathName,
    std::string_view workingDir);
» more...

Return Value

  • The absolute path, or an error if any occurred.
  • The absolute path, or an error if any occurred.

Parameters

NameDescription
pathNameThe absolute or relative path to the directory or file.
workingDirThe working directory to resolve relative paths against.