blob: 27e737362d433430cea3853a6073a6764e633721 [file] [log] [blame]
Matt Spinlerdf13bdb2019-07-10 16:54:13 -05001#include "config.h"
2
3#include "paths.hpp"
4
5#include <filesystem>
6
7namespace openpower
8{
9namespace pels
10{
11
12namespace fs = std::filesystem;
13
14fs::path getPELIDFile()
15{
16 fs::path logIDPath{EXTENSION_PERSIST_DIR};
17 logIDPath /= fs::path{"pels"} / fs::path{"pelID"};
18 return logIDPath;
19}
20
Matt Spinler89fa0822019-07-17 13:54:30 -050021fs::path getPELRepoPath()
22{
23 std::filesystem::path repoPath{EXTENSION_PERSIST_DIR};
24 repoPath /= "pels";
25 return repoPath;
26}
27
Matt Spinlerdf13bdb2019-07-10 16:54:13 -050028} // namespace pels
29
30} // namespace openpower