Excluding directories in internal libraries

I see it’s implemented now. Is there also a possibility to define the src_filter for the local library in platformio.ini instead of library.json, because I need an exclude just for a specific environment…

EDIT: I found this meanwhile, will give it a try.