Page 1 of 1

[SOLVED] Append to zip file, possible?

Posted: 30 Mar 2016 08:23
by wfrcrd
Hi to everyone,
I made a flow which creates .zip file.
The problem is that when it runs several times, it overwrite the existing file so I lose the first file.

How can I solve it?

I think that I can use a random number to create the file name, so finally I could have several different files,
but how can I use the random function to use it as a file name?

Re: Append to zip file, possible?

Posted: 30 Mar 2016 10:33
by Philip
When you create the ZIP file, could you append the current time (using triggertime) to the file name? That would ensure that it was unique and was not overwritten.

Re: Append to zip file, possible?

Posted: 30 Mar 2016 10:51
by wfrcrd
Philip wrote:When you create the ZIP file, could you append the current time (using triggertime) to the file name? That would ensure that it was unique and was not overwritten.
yes , but how?

On the zip action i must specify the name of the destination zip file , I don't know how to give it the time-based name...

Re: Append to zip file, possible?

Posted: 30 Mar 2016 11:09
by Philip
How are you creating the ZIP file?

Can you get it to output to (say) myfilename_{triggertime,dateformat,yyyyMMdd_HHmmss}.zip

Re: Append to zip file, possible?

Posted: 30 Mar 2016 11:27
by wfrcrd
Philip wrote:How are you creating the ZIP file?

Can you get it to output to (say) myfilename_{triggertime,dateformat,yyyyMMdd_HHmmss}.zip

Yes, it works perfectly!

I used the "zip" action , and on the file name I've specified the name using that format.
thank you !!! ^_^