pellepl / spiffs

Wear-leveled SPI flash file system for embedded devices
MIT License
1.52k stars 402 forks source link

truncate function not implementes? #217

Open davctv opened 6 years ago

davctv commented 6 years ago

Hello @pellepl,

I wonder if a "SPIFFS_truncate" function can be implemented in spiffs_hydrogen.c library.

I'm currently using ESP32 and ESP-IDF and the function has not been ported. I have checked that in "spiffs_nucleus.c" there is a

spiffs_object_truncate

function but I'm sure if and how I can use it.

Thanks