In Texis version 8 and later, the <watchpath> statement may be used to watch a file or directory, and get asynchronous notifications of changes (modifications, new/deleted files, etc.). See here for details.
<watchpath>