reference:scripting_reference:scripting_events:onfilesystemchange

The OnFilesystemChange event can be implemented by a script add-in to receive notification when monitored files or folders change. Monitoring is established by calling the FSUtil.WatchChanges method.

Method Name: OnFilesystemChange

Argument Type:

FilesystemChangeData 

Return Type:

none

Description:

The id property indicates which watcher detected a change. Note that you aren't told what changed, only that something meeting the specified conditions did change.