https://github.com/PyFilesystem/pyfilesystem2/issues/597 is showing pyfilesystem2 is unmaintained. The comments there indicate [fsspec](https://github.com/fsspec/filesystem_spec) might be a good replacement.