How to use the futimes function from graceful-fs
Find comprehensive JavaScript graceful-fs.futimes code examples handpicked from public code repositorys.
GitHub: lesly-mlab/mlab-app-v2
25 26 27 28 29 30 31 32 33 34
const d = new Date(1435410243862) fs.writeFile(tmpfile, 'https://github.com/jprichardson/node-fs-extra/pull/141', err => { if (err) return callback(err) fs.open(tmpfile, 'r+', (err, fd) => { if (err) return callback(err) fs.futimes(fd, d, d, err => { if (err) return callback(err) fs.close(fd, err => { if (err) return callback(err) fs.stat(tmpfile, (err, stats) => {
1
0
0
248 249 250 251 252 253 254 255 256 257
callback(fchmodErr); } } function times(propagatedErr) { fs.futimes(fd, timesDiff.atime, timesDiff.mtime, onFutimes); function onFutimes(futimesErr) { if (!futimesErr) { file.stat.atime = timesDiff.atime;
0
0
1
graceful-fs.promises is the most popular function in graceful-fs (1135 examples)