Looking for a easy way to deal with SPIFFS partition

Hi everyone.
I used a sketch uploaded into ESP32 to check its SPIFFS partition files, and do format. any easy way to do these please?
Thanks
Adam

You mihgt look at the ESP32's SPIFF API.

https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/storage/spiffs.html

Things like this may be of help:

esp_err_t esp_spiffs_info(const char *partition_label, size_t *total_bytes, size_t *used_bytes)

Get information for SPIFFS

Parameters

  • partition_label – Same label as passed to esp_vfs_spiffs_register
  • total_bytes[out] Size of the file system
  • used_bytes[out] Current used bytes in the file system

Returns

  • ESP_OK if success
  • ESP_ERR_INVALID_STATE if not mounted
1 Like

Explained here:
ESP32 Arduino SPIFFS: File upload IDE plugin - techtutorialsx

Working example (a few years back, may require minor changes because of core/API)

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.