Really dumb question: can do I use FME workbench to create a new folder, ideally with todays date?
Will the filecopy mover just create the folder if it doesn't exist?
Cheers
N
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.
An alternative would be to use a Fanout on the writer
So in this case the workspace will create a folder named after the current date (yyyymmdd format) in the /Volumes/support/FME Knowledge folder. For some reason I'm getting errors when I don't include a character after that date, hence the _
Yet another Alternative available for use is SystemCaller, if you prefer Command Lines, and on Windows you can call the relevant File and Folder commands and use the System date and time variables like %date% and %time. To get an equivalent YYYYMMDD format you can use
set YYYYMMDD=%DATE:~10,4%%DATE:~4,2%%DATE:~7,2% mkdir "C:\BaseFolder\SubFolder%YYYYMMDD%"
However, there are more than enough Transformers in FME to create the required folder path format, so this is only for those that maybe have an existing BAT they want to copy from to replicate system level commands inside an FME workspace