Skip to main content
ftruncateSync - node__fs.d.ts - Node documentation
function ftruncateSync

Usage in Deno

```typescript import { ftruncateSync } from "node:node__fs.d.ts"; ```
ftruncateSync(
fd: number,
len?: number | null,
): void
Truncates the file descriptor. Returns `undefined`. For detailed information, see the documentation of the asynchronous version of this API: [ftruncate](../.././node__fs.d.ts/~/ftruncate).

Parameters

fd: number
optional
len: number | null = 0

Return Type

void