10 namespace bf = std::filesystem;
18 for (
auto const&
path : pathElements) {
21 pathToResolve +=
path;
23 if (bf::is_symlink(bf::symlink_status(symLinkPath))) {
24 bf::path resolved = bf::read_symlink(symLinkPath);
27 if (!bf::exists(resolved)) {
32 auto end =
begin + pathToResolve.size();
34 if (resolvedPath[0] ==
'/') {
std::vector< std::string > tokenize(std::string const &input, std::string const &separator)
breaks the input string into tokens, delimited by the separator
void resolveSymbolicLinks(std::string &fullPath)