| 21 | } |
| 22 | |
| 23 | void clearBookCache(const std::string& path) { |
| 24 | if (FsHelpers::hasEpubExtension(path)) { |
| 25 | Epub(path, "/.crosspoint").clearCache(); |
| 26 | } else if (FsHelpers::hasXtcExtension(path)) { |
| 27 | Xtc(path, "/.crosspoint").clearCache(); |
| 28 | } else if (FsHelpers::hasTxtExtension(path)) { |
| 29 | Txt(path, "/.crosspoint").clearCache(); |
| 30 | } else { |
| 31 | return; |
| 32 | } |
| 33 | LOG_DBG("BookCache", "Done checking metadata cache for: %s", path.c_str()); |
| 34 | } |
no test coverage detected