mirror of
https://github.com/exogen/t2-mapper.git
synced 2026-01-19 12:14:47 +00:00
19 lines
361 B
TypeScript
19 lines
361 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) {
|
|
if (err.code === "ENOENT") {
|
|
console.log(inFile);
|
|
} else {
|
|
throw err;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
run();
|