| 123 | |
| 124 | template <typename Data> |
| 125 | void DeserializeFileDB(const fs::path& path, Data&& data) |
| 126 | { |
| 127 | FILE* file = fsbridge::fopen(path, "rb"); |
| 128 | AutoFile filein{file}; |
| 129 | if (filein.IsNull()) { |
| 130 | throw DbNotFoundError{}; |
| 131 | } |
| 132 | DeserializeDB(filein, data); |
| 133 | } |
| 134 | } // namespace |
| 135 | |
| 136 | CBanDB::CBanDB(fs::path ban_list_path) |
no test coverage detected