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; } } }