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

Method RemoveTempTranscodeFiles

src/plugins/server/Transcoder.cpp:122–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120}
121
122void Transcoder::RemoveTempTranscodeFiles(Context& context) {
123 iterateTranscodeCache(context, [](fs::path p) {
124 if (p.extension().u8string() == ".tmp") {
125 std::error_code ec;
126 fs::remove(p, ec);
127 }
128 });
129}
130
131void Transcoder::PruneTranscodeCache(Context& context) {
132 std::map<time_t, fs::path> sorted;

Callers

nothing calls this directly

Calls 1

iterateTranscodeCacheFunction · 0.85

Tested by

no test coverage detected