PlatformIO Community

ESP_VFS get total bytes / used bytes

I have a few different virtual filesystem mounts (SPIFFS on ‘/’, SDFS on ‘/sd’) and I need to know how much space is available in each when working in that path. It doesn’t appear that ‘statvfs’ is available. How would I do this in esp-idf?

Any help is appreciated.

For SD card:


Ok… I was hoping for an esp_vfs function that I could call for either path that would give me the info without having to handle each individually. Thanks.

Maybe Espressif people know more than me. Try posing the question on explicitly.