@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsenv/filesystem",
3
- "version": "4.10.10",
3
+ "version": "4.10.11",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -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 (e.code === "ENOENT" || e.code === "EACCES") {
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;