Skip to content

Exposing spiffs_object_truncate() in FS API #3846

Closed
@everslick

Description

@everslick

SPIFFS offers an function to truncate a file to a specific size. This is very useful, for rotating logfiles without going through a temp file as this needs additional space on the filesystem. Therefor I propose to expose

s32_t spiffs_object_truncate(
spiffs_fd *fd,
u32_t new_len,
u8_t remove_object);

which is defined in spiffs_nucleus.h through the FS API.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions