promises.FileHandle.datasync - Node documentation
method promises.FileHandle.datasync

Usage in Deno

import { type promises } from "node:fs";
FileHandle.datasync(): Promise<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) documentation for details.

Unlike filehandle.sync this method does not flush modified metadata.

Return Type

Promise<void>

Fulfills with undefined upon success.