Page 1 of 1

how to truncate a file in spiffs?

Posted: Sat Nov 24, 2018 10:36 pm
by stoikos
I would like to truncate a file in spiffs. I have found

Code: Select all

int truncate(const char *path, off_t length)
in vfs and

Code: Select all

f_truncate()
in fatbut I am not sure I have to to use

Code: Select all

spiffs_object_truncate()
and how

Re: how to truncate a file in spiffs?

Posted: Sun Nov 25, 2018 9:08 am
by loboris