gmethvin / directory-watcher

A cross-platform Java recursive directory watcher, with a JNA macOS watcher and Scala better-files integration
Apache License 2.0
265 stars 34 forks source link

Outright does not work at all #34

Closed Gaibhne closed 5 years ago

Gaibhne commented 5 years ago

Not sure how to sugarcoat it.

DirectoryWatcher
    .builder()
    .path(Paths.get("C:\\Users\\myuser\\Downloads\\"))
    .listener(event -> System.out.println("ping"))
    .build();

Doesn't print out "ping" when I create files there. Generic Windows 10, Java 8.

gmethvin commented 5 years ago

Did you call the watch() or watchAsync() method to actually start watching?