tool: inconsistent result when looping the creation of multiple files & folders using multiple values #1524
-
Hello, Cue version:
Issue: Here's the code that was executed:
Ran from the cli
Thanks in advance for the help. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
I suspect your code is trying to make files before directories. Try making an explicit dependency by referencing a fake field in mkdir in write, like (edit): I ended up writing out a number of gotchyas and patterns around |
Beta Was this translation helpful? Give feedback.
I suspect your code is trying to make files before directories. Try making an explicit dependency by referencing a fake field in mkdir in write, like
dep: task["mkdir-\(key)"].dummy
inside of the write task, just before filename(edit): I ended up writing out a number of gotchyas and patterns around
cue/flow
| thecue cmd
https://cuetorials.com/patterns/scripts-and-tasks/