From 01c052f2c1a4cd2fcefe0598797ae24d967020de Mon Sep 17 00:00:00 2001 From: Justice Almanzar Date: Sat, 15 Jul 2023 13:32:19 +0000 Subject: [PATCH] fix #51 on windows --- src/find-all.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/find-all.ts b/src/find-all.ts index 643bcae..11f0e00 100644 --- a/src/find-all.ts +++ b/src/find-all.ts @@ -45,7 +45,7 @@ function walk( return; } // skip deleted or inaccessible directories - if (err && !(err.code === 'ENOENT' || err.code === 'EACCES')) { + if (err && !(err.code === 'ENOENT' || err.code === 'EACCES' || err.code === 'EPERM')) { state.err = true; done(err); } else {