blob: 02be24abcf472bc62a9318605bdd6b9591245fd5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
import { CallbackWithError } from "internal:deno_node/polyfills/_fs/_fs_common.ts";
export function fsync(
fd: number,
callback: CallbackWithError,
) {
Deno.fsync(fd).then(() => callback(null), callback);
}
export function fsyncSync(fd: number) {
Deno.fsyncSync(fd);
}
|