Skip to content

Commit

Permalink
#223 (No match for watch event) - TreeWatcherNIO registered events fo…
Browse files Browse the repository at this point in the history
…r parent directory instead of actual directory.
  • Loading branch information
Jiří Bubník committed May 4, 2018
1 parent 3bec7a8 commit 719003c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ private void register(Path watched, Path target) throws IOException {
*/
protected void registerAll(Path watched, Path target) throws IOException {
if(watched == null){
watched = target.getParent();
watched = target;
}
LOGGER.info("Registering directory target {} via watched: {}", target, watched);

Expand Down

0 comments on commit 719003c

Please sign in to comment.