| 61 | } |
| 62 | |
| 63 | fs::path BDBDataFile(const fs::path& wallet_path) |
| 64 | { |
| 65 | if (fs::is_regular_file(wallet_path)) { |
| 66 | // Special case for backwards compatibility: if wallet path points to an |
| 67 | // existing file, treat it as the path to a BDB data file in a parent |
| 68 | // directory that also contains BDB log files. |
| 69 | return wallet_path; |
| 70 | } else { |
| 71 | // Normal case: Interpret wallet path as a directory path containing |
| 72 | // data and log files. |
| 73 | return wallet_path / "wallet.dat"; |
| 74 | } |
| 75 | } |
| 76 | |
| 77 | fs::path SQLiteDataFile(const fs::path& path) |
| 78 | { |
no outgoing calls