FileHandle.sync - Node documentation
method FileHandle.sync

Usage in Deno

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

Return Type

Promise<void>

Fulfills with undefined upon success.