org.beangle.commons.file.watch

Members list

Type members

Classlikes

class FileWatcher extends AutoCloseable

File Watcher

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
Supertypes
trait AutoCloseable
class Object
trait Matchable
class Any
object FileWatcher

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Self type