@jsenv/filesystem 4.10.8 → 4.10.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -251,7 +251,7 @@ export const registerDirectoryLifecycle = (
|
|
|
251
251
|
const directoryUrlObject = new URL(directoryUrl);
|
|
252
252
|
entryNameArray = readdirSync(directoryUrlObject);
|
|
253
253
|
} catch (e) {
|
|
254
|
-
if (e.code === "ENOENT") {
|
|
254
|
+
if (e.code === "ENOENT" || e.code === "EACCES") {
|
|
255
255
|
return;
|
|
256
256
|
}
|
|
257
257
|
throw e;
|
|
@@ -283,7 +283,7 @@ export const registerDirectoryLifecycle = (
|
|
|
283
283
|
});
|
|
284
284
|
});
|
|
285
285
|
} catch (e) {
|
|
286
|
-
if (e.code === "ENOENT") {
|
|
286
|
+
if (e.code === "ENOENT" || e.code === "EACCES") {
|
|
287
287
|
return;
|
|
288
288
|
}
|
|
289
289
|
throw e;
|