zen-fs-config 0.4.5 → 0.4.6
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/dist/index.js +4 -1
- package/dist/index.mjs +4 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -337,7 +337,10 @@ async function wrapZenFSFileSystem(config) {
|
|
|
337
337
|
await isolatedFS.createFile(path, { uid: 0, gid: 0, mode: 420 });
|
|
338
338
|
}
|
|
339
339
|
await isolatedFS.write(path, bytes, 0);
|
|
340
|
-
|
|
340
|
+
try {
|
|
341
|
+
await isolatedFS.touch(path, { size: bytes.byteLength, mtimeMs: Date.now() });
|
|
342
|
+
} catch {
|
|
343
|
+
}
|
|
341
344
|
},
|
|
342
345
|
async readdir(path) {
|
|
343
346
|
return isolatedFS.readdir(path);
|
package/dist/index.mjs
CHANGED
|
@@ -285,7 +285,10 @@ async function wrapZenFSFileSystem(config) {
|
|
|
285
285
|
await isolatedFS.createFile(path, { uid: 0, gid: 0, mode: 420 });
|
|
286
286
|
}
|
|
287
287
|
await isolatedFS.write(path, bytes, 0);
|
|
288
|
-
|
|
288
|
+
try {
|
|
289
|
+
await isolatedFS.touch(path, { size: bytes.byteLength, mtimeMs: Date.now() });
|
|
290
|
+
} catch {
|
|
291
|
+
}
|
|
289
292
|
},
|
|
290
293
|
async readdir(path) {
|
|
291
294
|
return isolatedFS.readdir(path);
|