Buckets:
| const tar = require("tar"); | |
| const fs = require("fs"); | |
| const path = require("path"); | |
| const tarball = path.resolve(process.argv[2]); | |
| const dirname = path.resolve(process.argv[3]); | |
| tar.extract({ | |
| sync: true, | |
| file: tarball, | |
| cwd: dirname, | |
| }); | |
| // SQLite >= 3.49 ships a VERSION file that conflicts with the C++20 <version> | |
| // header on case-insensitive filesystems (macOS/Windows). | |
| const base = path.basename(tarball, ".tar.gz"); | |
| const versionFile = path.join(dirname, base, "VERSION"); | |
| if (fs.existsSync(versionFile)) { | |
| fs.unlinkSync(versionFile); | |
| } | |
Xet Storage Details
- Size:
- 562 Bytes
- Xet hash:
- 41270268a855e23c053dea38642ab33848db6e7d767334fc07ce3ddec573ef70
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.