core/server/data/importer/index.js
function (filePath) {
        const tmpDir = path.join(os.tmpdir(), uuid.v4());
        this.fileToDelete = tmpDir;

        return Promise.promisify(extract)(filePath, {dir: tmpDir}).then(function () {
            return tmpDir;
        });
    }
function (filePath) {
        const tmpDir = path.join(os.tmpdir(), uuid.v4());
        this.fileToDelete = tmpDir;

        return Promise.promisify(extract)(filePath, {dir: tmpDir}).then(function () {
            return tmpDir;
        });
    }
function ( filePath ) { const tmpDir = path . join ( os . tmpdir ( ) , uuid . v4 ( ) ) ; this . fileToDelete = tmpDir ; return Promise . promisify ( extract ) ( filePath , { dir : tmpDir } ) . then ( function ( ) { return tmpDir ; } ) ; }
Use the extract module to extract the given zip file to a temp directory & return the temp directory path
@param {String} filePath
@returns {Promise[]} Files
Use the extract module to extract the given zip file to a temp directory & return the temp directory path