Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/db.cpp
Show First 20 Lines • Show All 938 Lines • ▼ Show 20 Lines | while (true) { | ||||
} | } | ||||
fs::copy_file(pathSrc, pathDest, | fs::copy_file(pathSrc, pathDest, | ||||
fs::copy_option::overwrite_if_exists); | fs::copy_option::overwrite_if_exists); | ||||
LogPrintf("copied %s to %s\n", strFile, pathDest.string()); | LogPrintf("copied %s to %s\n", strFile, pathDest.string()); | ||||
return true; | return true; | ||||
} catch (const fs::filesystem_error &e) { | } catch (const fs::filesystem_error &e) { | ||||
LogPrintf("error copying %s to %s - %s\n", strFile, | LogPrintf("error copying %s to %s - %s\n", strFile, | ||||
pathDest.string(), e.what()); | pathDest.string(), | ||||
fsbridge::get_filesystem_error_message(e)); | |||||
return false; | return false; | ||||
} | } | ||||
} | } | ||||
} | } | ||||
MilliSleep(100); | MilliSleep(100); | ||||
} | } | ||||
} | } | ||||
Show All 24 Lines |