How to use the fsyncSync function from graceful-fs

Find comprehensive JavaScript graceful-fs.fsyncSync code examples handpicked from public code repositorys.

463
464
465
466
467
468
469
470
471
472
473
474
exports.exists = exists;
exports.existsSync = existsSync;


// fsync
exports.fsync = Promise.promisify(fs.fsync);
exports.fsyncSync = fs.fsyncSync;


// link
exports.link = Promise.promisify(fs.link);
exports.linkSync = fs.linkSync;
fork icon9
star icon48
watch icon0

+ 7 other calls in file

213
214
215
216
217
218
219
220
221
222
  fs.writeSync(fd, data, 0, data.length, 0)
} else if (data != null) {
  fs.writeSync(fd, String(data), 0, String(options.encoding || 'utf8'))
}
if (options.fsync !== false) {
  fs.fsyncSync(fd)
}
fs.closeSync(fd)
if (options.chown) fs.chownSync(tmpfile, options.chown.uid, options.chown.gid)
if (options.mode) fs.chmodSync(tmpfile, options.mode)
fork icon0
star icon0
watch icon0

+ 3 other calls in file