From c33790262b0c84b977fd516bff15b9850ac2ab5e Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Tue, 3 May 2011 14:56:04 -0700 Subject: [PATCH] Added docs for fs.fsync and fs.fsyncSync Thanks baudehlo. Fixes #1009. --- doc/api/fs.markdown | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/doc/api/fs.markdown b/doc/api/fs.markdown index da8724e48b..a8b9dd81a7 100644 --- a/doc/api/fs.markdown +++ b/doc/api/fs.markdown @@ -272,6 +272,14 @@ Change file timestamps. Change file timestamps with the difference that if filename refers to a symbolic link, then the link is not dereferenced. +### fs.fsync(fd, callback) + +Asynchronous fsync(2). No arguments other than a possible exception are given +to the completion callback. + +### fs.fsyncSync(fd) + +Synchronous fsync(2). ### fs.write(fd, buffer, offset, length, position, [callback])