Closed adriantre closed 2 months ago
@adriantre I'm reluctant to add more virtual filesystem methods to fiona's API. That's not a good direction for the project. Instead, I recommend that torchgeo use a dedicated package like fsspec or the Azure Python module.
This PR is my best effort to add utility methods for checking if a file or vsi exists, and if it is a directory. (I have no expereince with Pyrex and C, so I would love feedback and guidance.)
The motivation comes from the need of these checks to list a directory recursively. The current workaround is this, which is a bit hacky.
with this pr, this would instead be possible: