in my current workflow I want to save files to a directory which is also created by the workflow.
The directory is created using the “create directory” node with the path/name provided via a flow variable (name changes depending on WF). The variable already contains the full path, so it already works as planned. However, in the options part of the configuration, it doesn’t allow me to omit the “Name” setting.
It appears to be intended for the actual directory the user might want to create, but can’t be controlled by flow variables, so it’s “condemned” to be a fixed value. My workaround is to put a single underscore in that field and a few subsequent nodes to delete that additional directory. It works, but isn’t very pretty.
Is there a cleaner solution available?
I’ve also tried the super-old solution provided here:
but Java snippets don’t recognise the “File” type. Either way would be ok with my OCD
See attached.Create Dir.knwf (7.8 KB)
Also, it looks like there is inconsistency with the Name parameter. I used fake name just to be able to save configuration even though on flow variable tab parameter was set using variable Row1.
that’s what I’d’ve done, if the node would let me. However, the Name parameter has no flow variable option (see attached screenshot).
So I’m “stuck” with one flow variable only. That would work too, if the second parameter wasn’t mandatory.