mirror of
https://github.com/catdevnull/preciazo.git
synced 2024-11-22 22:26:19 +00:00
mejorar los archives
This commit is contained in:
parent
a6e972ce83
commit
107d91711f
1 changed files with 6 additions and 1 deletions
|
@ -136,8 +136,13 @@ for (const resource of datasetInfo.result.resources) {
|
|||
await rm(path);
|
||||
}
|
||||
|
||||
await writeFile(
|
||||
join(dir, "dataset-info.json"),
|
||||
JSON.stringify(rawDatasetInfo, null, 2),
|
||||
);
|
||||
|
||||
const compressed =
|
||||
await $`tar -c -C ${dir} ${dir} | zstd -15 --long -T0`.blob();
|
||||
await $`tar -c -C ${dir} . | zstd -15 --long -T0`.blob();
|
||||
await uploadToB2Bucket(fileName, compressed);
|
||||
} finally {
|
||||
await $`rm -rf ${dir}`;
|
||||
|
|
Loading…
Reference in a new issue