Enable comparing filesystems with `==` by tfeldmann · Pull Request #519 · PyFilesystem/pyfilesystem2

Testing the equality of an FS is not something that makes sense across all filesystems. Your default implementation won't work for the more virtual filesystems.

That's true. I see equality as "references the same resource", so for example open_fs("~Desktop") == open_fs("~/Desktop"). It's fine if the more virtual ones cannot be compared.

Even with the same class and the same syspath for /, a subdirectory may reference different syspaths.

I didn't know this is possible - can you expand on that? I guess I misunderstood something.
Would the same ospath be a better indicator?

It's also not clear what equality means with a filesystem. A user may reasonably expect that the contents are the same.

Never thought about it this way - good point

I can see why you might need this, but it's not something that should be exposed via __eq__. I'd suggest defining a function with the logic you need. But it probably isn't something that belongs in the core lib.

That's fine, too! In this case feel free to close the PR 👍