Can files/folders be created in a loop? #567
Unanswered
zedlander1000
asked this question in
Q&A
Replies: 2 comments 2 replies
-
That's indeed not possible right now. It would be complicated to design and implement I think. You would typically use tasks to handle this use-case. |
Beta Was this translation helpful? Give feedback.
2 replies
-
See #1271 btw. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Say I have a question:
How could I loop through that list and create a directory for each name?
For example:
I have the
src
directory and within thesrc
directory, I want to createdir1
,dir2
, anddir3
.The above jinja simply just concatenates the names into a single directory.
There either is some mechanism i am not aware of, or this simply is not possible.
If this is not possible, this would be a wonderful feature to have, though I assume there are many design questions that need to be answered in order to make that work. Otherwise, would this be possible with jinja extensions?
Beta Was this translation helpful? Give feedback.
All reactions