17 static std::string appendForwardSlash(
const std::string& path);
20 return appendForwardSlash(std::filesystem::current_path());
28 std::string returnValue = path2;
30 returnValue = appendForwardSlash(path1) + path2;
36 size_t pos = path.find_last_of(
'/');
37 bool isPathJustFileName = (pos == std::string::npos);
39 if(isPathJustFileName) {
43 return path.substr(0, pos + 1);
49 std::string extractedName = path;
51 size_t pos = path.find_last_of(
'/');
52 bool isPathJustFileName = (pos == std::string::npos);
54 if(!isPathJustFileName) {
55 extractedName = path.substr(pos + 1, std::string::npos);
61 std::string appendForwardSlash(
const std::string& path) {
65 if(path.back() ==
'/') {