t2-mapper/scripts/find-missing-dif.ts
2026-03-16 18:16:34 -07:00

18 lines
366 B
TypeScript

import fs from "node:fs/promises";
async function run() {
for await (const inFile of fs.glob("docs/base/**/*.dif")) {
const glbFile = inFile.replace(/\.dif$/, ".glb");
try {
await fs.stat(glbFile);
} catch (err: any) {
if (err.code === "ENOENT") {
console.log(inFile);
} else {
throw err;
}
}
}
}
run();