Changeset View
Changeset View
Standalone View
Standalone View
src/util.cpp
Show First 20 Lines • Show All 419 Lines • ▼ Show 20 Lines | const fs::path &GetDataDir(bool fNetSpecific) { | ||||
} else { | } else { | ||||
path = GetDefaultDataDir(); | path = GetDefaultDataDir(); | ||||
} | } | ||||
if (fNetSpecific) { | if (fNetSpecific) { | ||||
path /= BaseParams().DataDir(); | path /= BaseParams().DataDir(); | ||||
} | } | ||||
fs::create_directories(path); | if (fs::create_directories(path)) { | ||||
// This is the first run, create wallets subdirectory too | |||||
fs::create_directories(path / "wallets"); | |||||
} | |||||
return path; | return path; | ||||
} | } | ||||
void ClearDatadirCache() { | void ClearDatadirCache() { | ||||
LOCK(csPathCached); | LOCK(csPathCached); | ||||
pathCached = fs::path(); | pathCached = fs::path(); | ||||
▲ Show 20 Lines • Show All 311 Lines • Show Last 20 Lines |