Ability to change watched folder

I've written a little flow to monitor my downloads folder and detect if a new file called anything (1).scad appears and rename it to anything.scad


But it means I have to hard-code my downloads folder in the watch node

It would nice to be able to use a variable (flow or global var for instance) instead

Any ideas or should I just try and create a fork/PR for the existing node?

As an aside, the node help says I need to \ on windows but it's working fine for me without doing that (on 3.1.0-beta2)


There is no mechanism that listens for changes to flow or global variables so how would the node know that you had changed anything?
You can of course use an environment variable set externally that is read at deploy time.

I don't need the node to dynamically update - just need to use "d:\users\siwal\downloads" in a few places in the flow so just want to be able to set it at deployment

Which I can except for this particular node

How would I get the environment variable into that node?

Using the. ${my-env-var} syntax


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