MCPcopy
hub / github.com/truelockmc/streambert / saveDownloads

Function saveDownloads

src/ipc/downloads.js:61–68  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

59}
60
61function saveDownloads() {
62 try {
63 const toSave = downloads.filter(
64 (d) => d.status !== "downloading" && d.status !== "error",
65 );
66 fs.writeFileSync(downloadsFile(), JSON.stringify(toSave, null, 2));
67 } catch {}
68}
69
70function cleanupTempFiles(downloadPath) {
71 if (!downloadPath) return;

Callers 3

registerFunction · 0.85
killAllDownloadsFunction · 0.85
registerFunction · 0.85

Calls 1

downloadsFileFunction · 0.85

Tested by

no test coverage detected