MCPcopy Create free account
hub / github.com/crosspoint-reader/crosspoint-reader / setupCacheDir

Method setupCacheDir

lib/Txt/Txt.cpp:51–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51void 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
60std::string Txt::findCoverImage() const {
61 // Get the folder containing the txt file

Callers

nothing calls this directly

Calls 2

existsMethod · 0.80
mkdirMethod · 0.80

Tested by

no test coverage detected