Skip to main content
fsyncSync - fs - Node documentation
function fsyncSync

Usage in Deno

import { fsyncSync } from "node:fs";
fsyncSync(fd: number): void

Request that all data for the open file descriptor is flushed to the storage device. The specific implementation is operating system and device specific. Refer to the POSIX fsync(2) documentation for more detail. Returns undefined.

Parameters

fd: number

Return Type

void