mirror of
https://github.com/badlogic/heissepreise.git
synced 2024-06-29 20:05:51 +02:00
skip already gzipped files in json -> gzip migration
This commit is contained in:
parent
51d58227c8
commit
de75e6686b
|
@ -223,6 +223,9 @@ exports.migrateToGzip = (dataDir) => {
|
||||||
);
|
);
|
||||||
files.push(`latest-canonical.json`);
|
files.push(`latest-canonical.json`);
|
||||||
for(const file of files) {
|
for(const file of files) {
|
||||||
|
// skip if already gzipped
|
||||||
|
if (file.indexOf(".gz") != -1) continue;
|
||||||
|
|
||||||
const path = `${dataDir}/${file}`
|
const path = `${dataDir}/${file}`
|
||||||
console.log(`${path} -> ${path}.gz`);
|
console.log(`${path} -> ${path}.gz`);
|
||||||
const data = readJSON(path);
|
const data = readJSON(path);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user