From 7263a7cf3ec3e11f262f88abf1b2221356047c18 Mon Sep 17 00:00:00 2001 From: Olen ANDONI Date: Mon, 26 Nov 2018 12:13:15 +0100 Subject: [PATCH] Add watchDirectory option for watchers --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 7c76748..03df3c4 100644 --- a/README.md +++ b/README.md @@ -65,6 +65,7 @@ watch2.on('change', function (filename) { var watch3 = new Inotifywait("/my/dir", { recursive: true, // recurse sub folders + watchDirectory: true, // generate events also for directories excludes: ["\./\.git(.*)"], // exclusion regex patterns files: [".gitignore"], // explicit file paths to ignore events: ["create", "move", "delete"], // events to listen to