@jsenv/filesystem 4.10.5 → 4.10.7
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
|
@@ -112,7 +112,7 @@ export const registerDirectoryLifecycle = (
|
|
|
112
112
|
stat: null,
|
|
113
113
|
};
|
|
114
114
|
}
|
|
115
|
-
if (e.code === "EACCES") {
|
|
115
|
+
if (e.code === "EACCES" || e.code === "EPERM") {
|
|
116
116
|
return {
|
|
117
117
|
type: null,
|
|
118
118
|
stat: null,
|
|
@@ -252,10 +252,9 @@ export const registerDirectoryLifecycle = (
|
|
|
252
252
|
entryNameArray = readdirSync(directoryUrlObject);
|
|
253
253
|
} catch (e) {
|
|
254
254
|
if (e.code === "ENOENT") {
|
|
255
|
-
|
|
256
|
-
} else {
|
|
257
|
-
throw e;
|
|
255
|
+
return;
|
|
258
256
|
}
|
|
257
|
+
throw e;
|
|
259
258
|
}
|
|
260
259
|
for (const entryName of entryNameArray) {
|
|
261
260
|
const childEntryUrl = new URL(entryName, directoryUrl).href;
|