File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -328,7 +328,10 @@ const Comms = {
328
328
console . warn ( "App file " + app . id + ".info doesn't have a 'files' field" ) ;
329
329
app . files = app . id + ".info" ;
330
330
}
331
- cmds += app . files . split ( ',' ) . filter ( f => f != "" ) . map ( file => `\x10require("Storage").erase(${ toJSString ( file ) } );\n` ) . join ( "" ) ;
331
+ 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 ( "" ) ;
332
335
// remove app Data: (dataFiles and storageFiles)
333
336
const data = AppInfo . parseDataString ( app . data )
334
337
const isGlob = f => / [ ? * ] / . test ( f )
You can’t perform that action at this time.
0 commit comments