how to truncate a file in spiffs?

stoikos
Posts: 31
Joined: Mon Aug 06, 2018 4:38 am

how to truncate a file in spiffs?

Postby stoikos » Sat Nov 24, 2018 10:36 pm

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

User avatar
loboris
Posts: 514
Joined: Wed Dec 21, 2016 7:40 pm

Re: how to truncate a file in spiffs?

Postby loboris » Sun Nov 25, 2018 9:08 am


Who is online

Users browsing this forum: Google [Bot] and 119 guests