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

Usage in Deno

```typescript import { fdatasync } from "node:node__fs.d.ts"; ```
fdatasync(
fd: number,
callback: NoParamCallback,
): void
Forces all currently queued I/O operations associated with the file to the operating system's synchronized I/O completion state. Refer to the POSIX [`fdatasync(2)`](http://man7.org/linux/man-pages/man2/fdatasync.2.html) documentation for details. No arguments other than a possible exception are given to the completion callback.

Parameters

fd: number
callback: NoParamCallback

Return Type

void