Commit e0a7f2b9 authored by Ahmad Nemati's avatar Ahmad Nemati

git pu

parent cbfe6b17
const fs = require('fs');
var watch = require('node-watch');
const buttonPressesLogFile = './test.txt';
console.log(`Watching for file changes on ${buttonPressesLogFile}`);
fs.watchFile(buttonPressesLogFile, (curr, prev) => {
console.log(`${buttonPressesLogFile} file Changed`);
watch('./', { filter: /\.txt$/ }, function(evt, name) {
console.log('%s changed.', name);
});
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment