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.
Hi @lalandexavier
Let me know if i did understand your case: do you have zip files and the name of these files are the actual date.
What would you like to do after read these files?
Thanks,
Danilo
Hi @lalandexavier
Let me know if i did understand your case: do you have zip files and the name of these files are the actual date.
What would you like to do after read these files?
Thanks,
Danilo
It's exactly that, I need to send it in a Gdrive space :-)
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.
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.
I try to manage my FeatureReader but my file is rejected :
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.
For information the format @DateTimeNow(%Y%m%d) didn't works I used @DatetimeFormat(@DateTimeNow(),%Y%m%d)
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.
For information the format @DateTimeNow(%Y%m%d) didn't works I used @DatetimeFormat(@DateTimeNow(),%Y%m%d)