Module: ko/filestatus

Monitor for file status changes

Note this is an imperfect implementation, it only monitors files that Komodo is already aware of, it does not monitor files that aren't already monitored.

Methods


require("ko/filestatus").monitor(fileurls, callback)

Monitor the given file urls

Parameters:
Name Type Description
fileurls Array | function

file urls or callback to monitor all file changes

callback function

What to do on change

Returns:
Type
Void

require("ko/filestatus").unmonitor(fileurls,, callback)

Stop monitoring file urls

Parameters:
Name Type Description
fileurls, Array | function

or callback to unmonitor all file changes

callback function

The callback that was used to monitor

Returns:
Type
Void