MCPcopy Create free account
hub / github.com/clangen/musikcube / cachePath

Function cachePath

src/plugins/server/Transcoder.cpp:98–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96}
97
98static std::string cachePath(Context& context) {
99 char buf[4096];
100 context.environment->GetPath(PathType::Data, buf, sizeof(buf));
101 std::string path = std::string(buf) + "/cache/transcoder/";
102 fs::path fsPath(fs::u8path(path));
103 if (!fs::exists(fsPath)) {
104 fs::create_directories(fsPath);
105 }
106 return path;
107}
108
109static void iterateTranscodeCache(Context& context, std::function<void(fs::path)> cb) {
110 if (cb) {

Callers 2

iterateTranscodeCacheFunction · 0.85
getTempAndFinalFilenameFunction · 0.85

Calls 2

existsFunction · 0.85
GetPathMethod · 0.80

Tested by

no test coverage detected