Function EventDriverFiles.truncate
Shrinks or extends a file to the specified size.
Parameters
Name | Description |
---|---|
file | Handle of the file to resize |
size | Desired file size in bytes |
on_finish | Called when the operation finishes - the size
parameter is always set to zero |