Added Utils::getWorkingDirPath() function

This commit is contained in:
Sylar 2025-11-06 18:41:44 +01:00
parent bfa1ae048b
commit 09722f5990
3 changed files with 11 additions and 5 deletions

View file

@ -75,4 +75,9 @@ namespace ostd
return home_path;
}
std::filesystem::path Utils::getWorkingDirPath(void)
{
return std::filesystem::current_path();
}
}

View file

@ -196,6 +196,7 @@ namespace ostd
static std::vector<std::filesystem::path> listDirectoriesInDirectoryRecursive(const String& directoryPath);
static std::vector<std::filesystem::path> listDirectoryRecursive(const String& directoryPath);
static ostd::String getHomeDirPath(void);
static std::filesystem::path getWorkingDirPath(void);
//Implemented in <ShuntingYard.cpp>
static int32_t solveIntegerExpression(const String& expr);