I really need a node that will watch a directory for a new file and then start a workflow. If the directory is empty, it should just wait until the directory is not empty and then run the rest of the workflow.
I have tried several solutions connecting different nodes together and there are many issues with these solutions because they are not specifically built to work in this way. There are several people in the forum asking for this and many were interested in this type of node at the Summit as well. An example of one forum topic from many years ago is below. I can provide more details on what I have tried and why this is not working if it is helpful.
Can someone please develop this node? Thanks in advance!
I am a relatively new user. I was trying to use the component and it seems like there are some flow variables (in the “list files” node, the variable that I am trying to pass in is not working). I am not sure if I am doing something wrong that is simple to fix or I am not using correctly. It seems like the variable that I need is there, but the “list files” node won’t use if correctly and always gets an error.
Thank you for your interest in this component, I created an updated version using the new filehandling nodes and made a little video for you that should show you how to use this:
Is it possible that instead of waiting time, can i change it that it will run if there are modifications made in the files in folder X? What i’m hoping for really is that my workflow to be executed once there are changes and/or creation to files in my folder but I’m not entirely sure how to do that.
with node Files/Folders Meta Info you can find out last modified date. Then checking if last modified date (date given by current node’s execution) is bigger (or just different) from last modified date (previous node execution) you see if file got modified and thus run your logic downstream.