You can see the YouTube Video
Not recomended for new designs but use the FatEx version portable-disk-driveEx
This is the SD-Card example for esp-arduino 8266/ESP32/S2/S3/C3/C6. For the ESP32C6 you will need the Arduino Release v3.X.X.
Copy the SDRoot to the root of your SD card sodat index.htm is in the root. Load the software in the ESP, and now you can see all the content of the SD card and edit it.
It is based on the work that Mohammed Rezwanul Islam has done see his video video
Added a Wiki to get you started.