Constructor

@:value({ recursive : false })new(?loop:Loop, path:String, onContentChanged:(events:Event) ‑> Void, recursive:Bool = false)

Raise an exception if the file couldn't be watched. If recursive is true and the current OS is not Windows or Mac, watching the file will also fail (because libUv doesn't support recursive filewatches on non Windows/Mac platforms)

Variables

contentChangedPath:Null<String>

Contains the path of the file that has changed when onContentChanged is called, or null if either the path is the watched folder, or if there was an error retrieving the path

Methods

Inherited Variables

Inherited Methods

Defined by Handle

close(?callb:() ‑> Void):Void