Dear people,
I've to use zip files for input, and this file name is the actual date so that change everything, how can I do for that ?
Thank you for your help.
Dear people,
I've to use zip files for input, and this file name is the actual date so that change everything, how can I do for that ?
Thank you for your help.
Best answer by lars_de_vries
Hi @lalandexavier,
I think the best way to solve this, is to start with a Creator transformer, followed by an AttributeCreator. Within the AttributeCreator you can set an attribute containing the current date and additional information if you like. For example:
@DateTimeNow(%Y%m%d).zip
The example would return 20180328.zip as attribute value, since todays date is March 28th, 2018.
This attribute can be used in a FeatureReader, where you choose your filetype and set the dataset to a path and the attribute.
You could add the path to the attribute, but you could also make a Parameter to set the path. That is up to you.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.