DirectoryMonitor

fun DirectoryMonitor(dir: Path, glob: String = "*")

Parameters

dir

対象ディレクトリ

glob

the globbing pattern. The syntax is specified by the FileSystem.getPathMatcher method.