@jsenv/filesystem 4.10.10 → 4.10.11
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
|
@@ -250,7 +250,12 @@ export const registerDirectoryLifecycle = (
|
|
|
250
250
|
const directoryUrlObject = new URL(directoryUrl);
|
|
251
251
|
entryNameArray = readdirSync(directoryUrlObject);
|
|
252
252
|
} catch (e) {
|
|
253
|
-
if (
|
|
253
|
+
if (
|
|
254
|
+
e.code === "ENOENT" ||
|
|
255
|
+
e.code === "EACCES" ||
|
|
256
|
+
e.code === "EPERM" ||
|
|
257
|
+
e.code === "ENOTDIR"
|
|
258
|
+
) {
|
|
254
259
|
return;
|
|
255
260
|
}
|
|
256
261
|
throw e;
|