create
fun create(directory: File, exclude: File?, onChange: (DirectoryChangeEvent) -> Unit): <Error class: unknown class>
Creates a new DirectoryWatcher.
Parameters
directory
directory to watch
exclude
file or directory to exclude from watching. If null, no files are excluded
onChange
function to call when a change is detected