You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constvol=memfs.Volume.fromJSON({'/foo': 'bar'});vol.readFileSync('/foo');// barvol.chownSync("/foo",200,200)// logs 200 as expectedconsole.log(vol.statSync("/foo").uid)// does not export set uid & gidconsole.log(vol.toJSON())
Is this intentional ?
The text was updated successfully, but these errors were encountered:
Is it possible to make it export the stat alongside the content? This'll allow users to preserve the entire filesystem (including metadata) in localStorage or maybe IndexedDB without messing up the mtimes.
First of all, great library!
I wanted to use it for unit testing a part of my application.
Sadly it seems like
vol.toJSON()
does not export file stats (such asuid
,gid
etc.).I had a quick glance over the source code and it looks like these are returned somewhere:
memfs/src/node.ts
Lines 214 to 229 in 6842252
Is this intentional ?
The text was updated successfully, but these errors were encountered: