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
Directory size (when iterating through MemFS) is reported as 0, whereas in a real File System it reports the size of the directory entry in the file system (not size of contained files!)
It would be nice to be able to create a MemFS with the option to fake the file size when using Create. I mean fake without actually stuffing the file so as to save memory)
Why? I have a utility function that mimics a real file system (os) into a memfs instance. I do it to implement a dry run. By faking tbe file object size one could save memory and still do a run and being able to calculate sizes based on the reported fake size.
The text was updated successfully, but these errors were encountered:
Why? I have a utility function that mimics a real file system (os) into a
memfs
instance. I do it to implement a dry run. By faking tbe file object size one could save memory and still do a run and being able to calculate sizes based on the reported fake size.The text was updated successfully, but these errors were encountered: