Skip to content

Rose::StringUtility::getAbsolutePathFromRelativePath

Get the absolute path from the relative path.

Synopsis

Declared in <src/Rose/StringUtility/FileUtility.h>

[[visibility]]
std::string
getAbsolutePathFromRelativePath(
    std::string const& relativePath,
    bool printErrorIfAny = false);

Description

Terms are loosely defined and this function is not likely to work on non‐POSIX systems. Consider using std::filesystem instead.

Return Value

Absolute path string.

Parameters

Name

Description

relativePath

Relative path string.

printErrorIfAny

Whether to print errors.

Created with MrDocs