How to use the futimes function from fs-extra
Find comprehensive JavaScript fs-extra.futimes code examples handpicked from public code repositorys.
GitHub: wk-js/starter-nanogl
86 87 88 89 90 91 92 93 94 95
var now = Date.now() var a = parseInt(now / 1000, 10) , m = parseInt(now / 1000, 10) fs.futimes(fd, a, m, function(err) { if (err) return console.log(err) fs.close(fd) }) })
1
4
0
8918 8919 8920 8921 8922 8923 8924 8925 8926 8927
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) => {
0
1
0
+ 26 other calls in file
fs-extra.readFileSync is the most popular function in fs-extra (9724 examples)