Loop to poll a windows directory

Has anyone managed to get a loop to continuously poll a windows directory for new files and trigger an analysis? I’m thinking that might be a way to implement near real-time analysis.

Hi @raelldata -

Does this component do what you need?

1 Like

@raelldata I once built this thing that would check at certain intervals if a file has changed (store the most recent information) and if there is a change it would do something:

You could of course adapt the condition (something has to change within the file).

If you want to construct an infinite loop you could think about entering a breaking point you could set from outside knime like a Stopp.txt file. As long as it is not there the loop continues. This could be a more elegant solution than just forcefully stopping the knime program.


This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.