How to use the utimes function from graceful-fs
Find comprehensive JavaScript graceful-fs.utimes code examples handpicked from public code repositorys.
GitHub: lesly-mlab/mlab-app-v2
50 51 52 53 54 55 56 57 58 59 60
throw new Error('fs-extra: timeRemoveMillis() unknown parameter type') } } function utimesMillis (path, atime, mtime, callback) { // if (!HAS_MILLIS_RES) return fs.utimes(path, atime, mtime, callback) fs.open(path, 'r+', (err, fd) => { if (err) return callback(err) fs.futimes(fd, atime, mtime, futimesErr => { fs.close(fd, closeErr => {
1
0
0
graceful-fs.promises is the most popular function in graceful-fs (1135 examples)