|Top Previous Next|
File FileSystemWatcher object allows lua to receive notifications when a directory or file changes.
Adds the path ( either a directory or a file ) to the list of watched items.
Removes the path from the list of watched items.
Returns the list of watched files as a table.
Returns the list of watched folders as a table.
Sets the function to call when a change occurs. The event parameter will either be "fileChanged" or "directoryChanged". Note only one callback can be active at a time. Setting a new callback on the object will remove the old callback.
Stops watching for changes and unregisters the callback.