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

Function iterateTranscodeCache

src/plugins/server/Transcoder.cpp:109–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107}
108
109static void iterateTranscodeCache(Context& context, std::function<void(fs::path)> cb) {
110 if (cb) {
111 fs::directory_iterator end;
112 fs::directory_iterator file(fs::u8path(cachePath(context)));
113 while (file != end) {
114 if (!is_directory(file->status())) {
115 cb(file->path());
116 }
117 ++file;
118 }
119 }
120}
121
122void Transcoder::RemoveTempTranscodeFiles(Context& context) {
123 iterateTranscodeCache(context, [](fs::path p) {

Callers 2

PruneTranscodeCacheMethod · 0.85

Calls 1

cachePathFunction · 0.85

Tested by

no test coverage detected