FabGL
ESP32 Display Controller and Graphics Library

◆ truncate()

bool fabgl::FileBrowser::truncate ( char const *  name,
size_t  size 
)

Truncates a file to the specified size.

Parameters
nameRelative file name
sizeNew size in bytes
Returns
Returns true on success.