Class for high-performance, native file system watching.

Static methods

staticstopAll():Void

Stops all active native watches and background threads.

@:value({ recursive : true })staticwatch(path:String, callback:FSEvent ‑> Void, recursive:Bool = true):Bool

Starts a watch on the specified directory.

Parameters:

path

Directory to watch.

callback

Function to call when an event occurs.

recursive

True to watch subdirectories recursively.

Returns:

True if watch started successfully.