| 49 | } |
| 50 | |
| 51 | void Txt::setupCacheDir() const { |
| 52 | if (!Storage.exists(cacheBasePath.c_str())) { |
| 53 | Storage.mkdir(cacheBasePath.c_str()); |
| 54 | } |
| 55 | if (!Storage.exists(cachePath.c_str())) { |
| 56 | Storage.mkdir(cachePath.c_str()); |
| 57 | } |
| 58 | } |
| 59 | |
| 60 | std::string Txt::findCoverImage() const { |
| 61 | // Get the folder containing the txt file |