Override Espressif library in project

Which is the best way to copy an espressif library to a project to work with it.
Specifically I need to work with the
.platformio/packages/framework-arduinoespressif/libraries/ESP8266WebServer

I copied into my lib/ESP8266WebServer, work with it and I would like to override the espressif library.

The platformio’s lib finder its copying the original one.

thanks in advance,
Sebastián

Hi, Sebastián!
Libraries from lib folder have a higher priority than ones located in a framework.
I’ve just copied ESP8266WebServer to local lib folder in the project and everything works as expected - PlatformIO uses ESP8266WebServer from lib folder. Am I missing something from your issue? Have you tried to delete entire .pioenvs folder?

You are right! I was having an issue changing the folder name.
Thanks