We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a23b1ac commit 58f945dCopy full SHA for 58f945d
1 file changed
modules/core/util/src/util.cpp
@@ -9,14 +9,15 @@
9
namespace {
10
11
std::string GetAbsolutePath(const std::string& relative_path) {
12
- const std::filesystem::path path = std::string(PPC_PATH_TO_PROJECT) + "/tasks/" + relative_path;
+ std::filesystem::path path = std::filesystem::path(PPC_PATH_TO_PROJECT) / "tasks" / relative_path;
13
return path.string();
14
}
15
16
} // namespace
17
18
std::string ppc::util::GetAbsoluteTaskPath(const std::string& id_path, const std::string& relative_path) {
19
- return GetAbsolutePath(id_path + "/data/" + relative_path);
+ std::filesystem::path task_relative = std::filesystem::path(id_path) / "data" / relative_path;
20
+ return GetAbsolutePath(task_relative.string());
21
22
23
int ppc::util::GetNumThreads() {
0 commit comments