Enable comparing filesystems with ==#519
Enable comparing filesystems with ==#519tfeldmann wants to merge 3 commits intoPyFilesystem:masterfrom tfeldmann:master
==#519Conversation
|
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. Even with the same class and the same syspath for /, a subdirectory may reference different syspaths. It's also not clear what equality means with a filesystem. A user may reasonably expect that the contents are the same. I can see why you might need this, but it's not something that should be exposed via |
That's true. I see equality as "references the same resource", so for example
I didn't know this is possible - can you expand on that? I guess I misunderstood something.
Never thought about it this way - good point
That's fine, too! In this case feel free to close the PR 👍 |
E.g. https://docs.pyfilesystem.org/en/latest/reference/multifs.html or https://docs.pyfilesystem.org/en/latest/reference/mountfs.html |
Type of changes
Checklist
Description
This PR enables comparing filesystems with the
==operator. Based on the discussion in #515.