Matt Spinler | df13bdb | 2019-07-10 16:54:13 -0500 | [diff] [blame] | 1 | #include "config.h" |
| 2 | |
| 3 | #include "paths.hpp" |
| 4 | |
| 5 | #include <filesystem> |
| 6 | |
| 7 | namespace openpower |
| 8 | { |
| 9 | namespace pels |
| 10 | { |
| 11 | |
| 12 | namespace fs = std::filesystem; |
| 13 | |
| 14 | fs::path getPELIDFile() |
| 15 | { |
| 16 | fs::path logIDPath{EXTENSION_PERSIST_DIR}; |
| 17 | logIDPath /= fs::path{"pels"} / fs::path{"pelID"}; |
| 18 | return logIDPath; |
| 19 | } |
| 20 | |
Matt Spinler | 89fa082 | 2019-07-17 13:54:30 -0500 | [diff] [blame] | 21 | fs::path getPELRepoPath() |
| 22 | { |
| 23 | std::filesystem::path repoPath{EXTENSION_PERSIST_DIR}; |
| 24 | repoPath /= "pels"; |
| 25 | return repoPath; |
| 26 | } |
| 27 | |
Matt Spinler | df13bdb | 2019-07-10 16:54:13 -0500 | [diff] [blame] | 28 | } // namespace pels |
| 29 | |
| 30 | } // namespace openpower |