mrdocs::files::getParentDir
Return the parent directory.
Synopses
Declared in <mrdocs/Support/Path.hpp>
Return the parent directory.
std::string
getParentDir(std::string_view pathName);
Return the parent directory.
std::string
getParentDir(
std::string_view pathName,
unsigned int levels);
Parameters
Name |
Description |
pathName |
The absolute or relative path to the directory or file. |
levels |
The number of levels to go up. If this is zero, the original path is returned. If this is greater than the number of levels in the path, the empty string is returned. |
Created with MrDocs