MCPcopy Create free account
hub / github.com/WaykiChain/WaykiChain / GetSpecialFolderPath

Function GetSpecialFolderPath

src/commons/util/util.cpp:942–953  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

940
941#ifdef WIN32
942boost::filesystem::path GetSpecialFolderPath(int nFolder, bool fCreate) {
943 namespace fs = boost::filesystem;
944
945 char pszPath[MAX_PATH] = "";
946
947 if (SHGetSpecialFolderPathA(NULL, pszPath, nFolder, fCreate)) {
948 return fs::path(pszPath);
949 }
950
951 LogPrint(BCLog::INFO, "SHGetSpecialFolderPathA() failed, could not obtain requested path.\n");
952 return fs::path("");
953}
954#endif
955
956boost::filesystem::path GetTempPath() {

Callers 1

GetDefaultDataDirFunction · 0.85

Calls 1

pathClass · 0.85

Tested by

no test coverage detected