first commit for refactored project
This commit is contained in:
13
ax3Services/docParserService/parserWatcher.js
Normal file
13
ax3Services/docParserService/parserWatcher.js
Normal file
@@ -0,0 +1,13 @@
|
||||
const fs = require("fs");
|
||||
const { readDir, parseTextFile } = require("./docParser");
|
||||
|
||||
function watchParseSave() {
|
||||
const watchPath = "../Documents/Textfiles/";
|
||||
|
||||
fs.watch(watchPath, (eventType, filename) => {
|
||||
console.log(eventType);
|
||||
console.log(filename);
|
||||
});
|
||||
}
|
||||
|
||||
watchParseSave();
|
||||
Reference in New Issue
Block a user