Files
2020-10-10 09:56:42 +08:00

16 lines
393 B
C++

#include <iostream>
#include <cstdlib>
#include <boost/filesystem.hpp>
using namespace std;
int main() {
boost::filesystem::path keyStorePath;
if (std::getenv("HOME") != nullptr) {
keyStorePath = boost::filesystem::path(std::getenv("HOME")) / ".ndn";
} else {
keyStorePath = boost::filesystem::current_path() / ".ndn";
}
cout << keyStorePath.string() << endl;
return 0;
}