How to use the futimes function from fs-extra

Find comprehensive JavaScript fs-extra.futimes code examples handpicked from public code repositorys.

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)
  })
})
fork icon1
star icon4
watch icon0

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) => {
fork icon0
star icon1
watch icon0

+ 26 other calls in file

function icon

fs-extra.readFileSync is the most popular function in fs-extra (9724 examples)