Skip to content

Fake Filesystem Never Empty. There Is Always Folder '/var/folders' on MacOS #329

Closed
@Quibi

Description

@Quibi

Before pyfakefs 3.3 (3.2 and above), it is possible to check that the fake filesystem is empty and only has the root directory /. A simple scandir() was enough.

However, since version 3.3 the fake filesystem is not really empty any more. There is always a '/var/folders' directory. Why?

I think that a best solution —the ideal one, I must say— will be that the fake filesystem is really empty, except for root directory. Any file or folder must exist only if you create it. That was the behaviour of pyfakefs till 3.3.

In my case, it causes a lot of errors in my tests. scandir, ListDir, glob, etc. does not returns expected results any more...

Pyfakefs 3.3
Python 3.6.3
MacOs 10.6.2

Thanks a lot

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions