after downloading more than 30 assets w/o a problem,
the infiltrator demo, 7.7GB in chunks files became 7.2GB after extracted,
the problem was out of free HD space, so many files were missing in the end,
there is no validation neither check for free space prior to extraction.
if it could trash instead of delete the files,
or just do not delete them, I could just retry extracting.
I had to re-download everything (took me 5 hours) as in the ext4 filesystem (linux) it is impossible to recover deleted files.
I patched like this on epicApi.js:
function onExtractionComplete()
{
//console.log("Deleting chunks after extraction");
console.log("NOT deleting chunks after extraction");
///TODO: Delete chunks as they are not needed (but a chunk can be used more than once).
//deleteDir(chunkBasePath, function ondel()
//{
//assetsData[id][appId].extracted = true;
//saveAssetsData(ondone);
//});
assetsData[id][appId].extracted = true;
saveAssetsData(ondone);
}