Moving file only when finished

I do exactly the same thing, and is what I suggested at the start, and it is a better solution. There is no problem doing that in node red, the problem is how to tell if a file is open in Windows, which I don't know how to do.

Once the move is complete it triggers the watch node again which results in an error because the file already moved, that's all. Clutter in the debug screen

What message do you get from the watch node when the file is deleted?

[Edit] Set the debug node to Output Complete Message so we can see everything.

A file triggers the watch node twice, once arriving once leaving. After the second trigger it errors on the move node.

no such file or directory

Sorry, you probably didn't see my previous post, it may have crossed with yours. Feed the output of the watch node into a debug node set to Output complete message and show us what it shows for the first and second trigger. You can paste a screenshot here.

Following a Python way of solving it, if of interest, is described here

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