Skip to content

Fake file Size in MemFS #34

Description

@lordofscripts
  • 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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions