function truncate
Jump to headingtruncate(path: PathLike,len?: number,): Promise<void>
Truncates (shortens or extends the length) of the content at path
to len
bytes.
Parameters Jump to heading
Jump to headingpath: PathLike
optional
Jump to headinglen: number = 0
Return Type Jump to heading
Promise<void>
Fulfills with undefined
upon success.