Return an absolute path from a possibly relative path.

Synopses

Declared in <mrdocs/Support/Path.hpp>

Return an absolute path from a possibly relative path.

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

Return an absolute path from a possibly relative path.

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

Return Value

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

  • 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