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]
Archived
DirectoryChecker/Creator transformer
This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.
Login to the community
No account yet? Create an account
An FME Account is required to contribute
LoginEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.


