Skip to content

huge download did not extract properly and the chunks got deleted (I did a temporary scratch patch that helped to workaround only, not to commit) #20

@AquariusPower

Description

@AquariusPower

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);
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions