WatcherRestart
Restarts a registered watcher by performing {@code stop()} then {@code start()}.
This is useful when refreshing watcher state after path changes or listener updates.
Method Signature
WatcherRestart(name=[string])Arguments
Argument
Type
Required
Description
Default
name
string
true
The unique watcher name to restart.
Examples
Restart a file watcher
watcherNew( "restartWatcher", getTempDirectory() );
watcherRestart( "restartWatcher" );
writeOutput( "restarted" );
Result: restarted
Related
Last updated
Was this helpful?
