_saveFile(file, data, gzip) {
        fs.ensureDirSync(path.dirname(file));
        let content = gzip ? zlib.gzipSync(data, { level: 9 }) : data;
        fs.writeFileSync(file, content, typeof content === 'string' ? { encoding: 'utf8' } : undefined);
    }
@param {*} file
@param {*} data
@param {*} gzip