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

Usage in Deno

```typescript import { fsync } from "node:node__fs.d.ts"; ```
fsync(
fd: number,
callback: NoParamCallback,
): 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)`](http://man7.org/linux/man-pages/man2/fsync.2.html) documentation for more detail. No arguments other than a possible exception are given to the completion callback.

Parameters

fd: number
callback: NoParamCallback

Return Type

void