| 288 | } |
| 289 | |
| 290 | void AddressBookFilesystemStorage::SaveEtag (const i2p::data::IdentHash& subscription, const std::string& etag, const std::string& lastModified) |
| 291 | { |
| 292 | std::string fname = etagsPath + i2p::fs::dirSep + subscription.ToBase32 () + ".txt"; |
| 293 | std::ofstream f (fname, std::ofstream::out | std::ofstream::trunc); |
| 294 | if (f) |
| 295 | { |
| 296 | f << etag << std::endl; |
| 297 | f<< lastModified << std::endl; |
| 298 | } |
| 299 | } |
| 300 | |
| 301 | bool AddressBookFilesystemStorage::GetEtag (const i2p::data::IdentHash& subscription, std::string& etag, std::string& lastModified) |
| 302 | { |