org.beangle.commons.file.watch.FileWatcher
See theFileWatcher companion object
class FileWatcher extends AutoCloseable
File Watcher
val watcher = FileWatcher.newBuilder().add("D:\\tmp","*.jpg","*.png")
.build((kind: String, path: Path) => {
println(s"$kind $path")
})
try {
Thread.sleep(1000000) // ensure the callback fires
} finally watcher.close()
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
trait AutoCloseableclass Objecttrait Matchableclass Any
Members list
In this article