| 73 | } |
| 74 | |
| 75 | fs::path BDBDataFile(const fs::path& wallet_path) |
| 76 | { |
| 77 | if (fs::is_regular_file(wallet_path)) { |
| 78 | // Special case for backwards compatibility: if wallet path points to an |
| 79 | // existing file, treat it as the path to a BDB data file in a parent |
| 80 | // directory that also contains BDB log files. |
| 81 | return wallet_path; |
| 82 | } else { |
| 83 | // Normal case: Interpret wallet path as a directory path containing |
| 84 | // data and log files. |
| 85 | return wallet_path / "wallet.dat"; |
| 86 | } |
| 87 | } |
| 88 | |
| 89 | fs::path SQLiteDataFile(const fs::path& path) |
| 90 | { |
no outgoing calls
no test coverage detected