MCPcopy Create free account
hub / github.com/ollm/OpenComic / removeTemporaryFiles

Function removeTemporaryFiles

scripts/settings.js:64–78  ·  view source on GitHub ↗
(onClose = false)

Source from the content-addressed store, hash-verified

62}
63
64function removeTemporaryFiles(onClose = false)
65{
66 try
67 {
68 storage.set('tmpUsage', {});
69 fse.emptyDirSync(tempFolder);
70 }
71 catch(error)
72 {
73 console.error(error);
74 }
75
76 if(!onClose)
77 getStorageSize();
78}
79
80function removeUnreferencedTemporaryFiles(tmpUsage, dir, first = true)
81{

Callers

nothing calls this directly

Calls 1

getStorageSizeFunction · 0.85

Tested by

no test coverage detected