#include #include #include 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; }