I’m not sure what version that started in.
There’s a more fine-grained changelog in the history for importlib_resources, where you can find support for directories added in 5.9.0, which was first included in Python 3.12.
Does anyone know why this feature was dropped?
The authors of importlib resources sought to re-write the functionality from scratch in order to shed assumptions and simplify the implementation while integrating it with the Python import system.
It wasn’t until importlib_resources#58 was filed that the maintainers were even considering what it would take to support directories.
It was in fact the lack of support for directories that got me involved with the project and led to the API rewrite that landed in 3.9.
I’ll write an issue & PR to reflect this possibility in the docs.
Thanks for catching this issue and I welcome the fix. Please include me in the review. There have been problems in the docs, due in part to the dual implementations and the fact that some of the docs only exist in CPython and there are no generated API docs.