Skip to main content

It would be nice if there were a built-in transformer that would check if the supplied directory exists and is writeable and optionally create it if it doesn't exist.

There are a few transformers that can write to files directly, and they will fail if the directory doesn't already exist. For example the HTTPCaller with Save Response Body to File.

I do have a python script that does it, but wrapping it in a custom transformer get tricky with parameters [see python-caller-user-parametersl]

Ideally we'd adopt a policy of "create directory if necessary" across all these areas -- our writer framework already does this for example. Thanks for pointing this out.


That also works. :)