Skip to main content
function ftruncateSync
ftruncateSync(
fd: number,
len?: number | null,
): void
Deprecated

Truncates the file descriptor. Returns undefined.

For detailed information, see the documentation of the asynchronous version of this API: ftruncate.

Parameters

fd: number
optional
len: number | null = 0

Return Type

void
Back to top