This is the SD-Card example for esp-arduino 8266/ESP32/ESP32S2/ESP32S3/ESP32C3. It will support FatEx that is based on the greiman/SdFat. It also has OTA software update support, and a Wifi manager. Wifi login can be reseted by pressing the Boot button for 5 Seconds Platformio is also supported. You can see this Project in Action video https://youtu.be/4TL-1kFhhLU?si=0_FFTyLoHQfMEpkf
It is based on the work that Mohammed Rezwanul Islam has done see his video video