From 9463d15fa933321e2d37bb94cc050a43c809e315 Mon Sep 17 00:00:00 2001 From: Jo Liss Date: Wed, 3 Sep 2025 00:57:39 +0100 Subject: [PATCH] Fix z/OS compatibility, by @laijonathan. Squashes #72 --- index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.ts b/index.ts index 9825414..68d9509 100644 --- a/index.ts +++ b/index.ts @@ -71,7 +71,7 @@ namespace walkSync { } isDirectory() { - return (this.mode & 61440) === 16384; + return (this.mode & fsNode.constants.S_IFMT) === fsNode.constants.S_IFDIR; } } }