How to use the watch function from fs-promise

Find comprehensive JavaScript fs-promise.watch code examples handpicked from public code repositorys.

44
45
46
47
48
49
50
51
52
53
    for (var i = 0; i < files.length; i++) {
      var file = files[i]
      if (!(file in self.cache)) self.cache[file] = dummy
    }
    if (self.watching) self.watching.close()
    self.watching = fs.watch(self.path, self.listen.bind(self))
    return self.cache
  })
}

fork icon3
star icon39
watch icon0

+ 3 other calls in file