We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4036ae0 commit 6c21336Copy full SHA for 6c21336
js/comms.js
@@ -328,7 +328,10 @@ const Comms = {
328
console.warn("App file "+app.id+".info doesn't have a 'files' field");
329
app.files=app.id+".info";
330
}
331
- cmds += app.files.split(',').filter(f=>f!="").map(file => `\x10require("Storage").erase(${toJSString(file)});\n`).join("");
+ if (Const.FILES_IN_FS)
332
+ cmds += app.files.split(',').filter(f=>f!="").map(file => `\x10require("fs").unlinkSync(${toJSString(file)});\n`).join("");
333
+ else
334
+ cmds += app.files.split(',').filter(f=>f!="").map(file => `\x10require("Storage").erase(${toJSString(file)});\n`).join("");
335
// remove app Data: (dataFiles and storageFiles)
336
const data = AppInfo.parseDataString(app.data)
337
const isGlob = f => /[?*]/.test(f)
0 commit comments