Rose::StringUtility::getAbsolutePathFromRelativePath¶
Get the canonical absolute path of an existing filesystem entry.
Synopsis¶
Declared in <src/Rose/StringUtility/FileUtility.h>
[[visibility("default")]]
std::string
getAbsolutePathFromRelativePath(std::string const& relativePath); Description¶
Resolves symbolic links and requires every path component to exist. Use std::filesystem::absolute for paths that need not exist.
Exceptions¶
| Name | Thrown on |
|---|---|
std::filesystem::filesystem_error | if resolution fails. |
Return Value¶
Canonical absolute path string.
Parameters¶
| Name | Description |
|---|---|
| relativePath | Nonempty relative or absolute path without embedded NUL. |
Created with MrDocs