function truncateSync
Jump to headingtruncateSync(path: PathLike,len?: number | null,): voidTruncates the file. Returns undefined. A file descriptor can also be
passed as the first argument. In this case, fs.ftruncateSync() is called.
Passing a file descriptor is deprecated and may result in an error being thrown in the future.
Parameters Jump to heading
Jump to headingpath: PathLikeoptional
Jump to headinglen: number | null = 0Return Type Jump to heading
void