From 2d7815cff8dc032805728975c338f8e93f553f44 Mon Sep 17 00:00:00 2001 From: Holly Date: Fri, 28 Jul 2023 10:01:47 +0100 Subject: [PATCH] Another CI fix attempt --- tooling/fileSmasher.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tooling/fileSmasher.ts b/tooling/fileSmasher.ts index 5bae872..d19e9f8 100644 --- a/tooling/fileSmasher.ts +++ b/tooling/fileSmasher.ts @@ -2,7 +2,7 @@ // for when you're just too lazy to // do it properly. -import { readdirSync, statSync, readFileSync, writeFileSync } from "fs"; +import { readdirSync, lstatSync, readFileSync, writeFileSync } from "fs"; const tsFileData:Array = new Array(); @@ -19,7 +19,7 @@ function readDir(nam:string) { // This is a very dumb way of checking for folders // protip: don't do this. - if (statSync(`${nam}/${file}`).size == 0) { + if (statSync(`${nam}/${file}`).isDirectory()) { readDir(`${nam}/${file}`); } else if (file.endsWith(".ts")) { tsFileData.push(readFileSync((`${nam}/${file}`).replace("//", "/")).toString());