How to use the fsync function from graceful-fs
Find comprehensive JavaScript graceful-fs.fsync code examples handpicked from public code repositorys.
120 121 122 123 124 125 126 127 128 129
} else resolve() }) }).then(function syncAndClose () { return new Promise(function (resolve, reject) { if (options.fsync !== false) { fs.fsync(fd, function (err) { if (err) fs.close(fd, () => reject(err)) else fs.close(fd, resolve) }) } else {
0
0
0
+ 3 other calls in file
graceful-fs.promises is the most popular function in graceful-fs (1135 examples)