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

Function GetSpecialFolderPath

src/util/fs_helpers.cpp:249–259  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

247
248#ifdef WIN32
249fs::path GetSpecialFolderPath(int nFolder, bool fCreate)
250{
251 WCHAR pszPath[MAX_PATH] = L"";
252
253 if (SHGetSpecialFolderPathW(nullptr, pszPath, nFolder, fCreate)) {
254 return fs::path(pszPath);
255 }
256
257 LogError("SHGetSpecialFolderPathW() failed, could not obtain requested path.");
258 return fs::path("");
259}
260#endif
261
262bool RenameOver(fs::path src, fs::path dest)

Callers 2

StartupShortcutPathFunction · 0.85
GetDefaultDataDirFunction · 0.85

Calls 1

pathClass · 0.70

Tested by

no test coverage detected