[SOLVED] Append to zip file, possible?

Post your questions and help other users.

Moderator: Martin

Post Reply
wfrcrd
Posts: 116
Joined: 27 May 2015 08:57

[SOLVED] Append to zip file, possible?

Post by wfrcrd » 30 Mar 2016 08:23

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?
Last edited by wfrcrd on 30 Mar 2016 11:27, edited 1 time in total.

User avatar
Philip
Posts: 82
Joined: 08 Jun 2015 19:20
Location: Hampshire, UK

Re: Append to zip file, possible?

Post by Philip » 30 Mar 2016 10:33

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.
--
Philip

wfrcrd
Posts: 116
Joined: 27 May 2015 08:57

Re: Append to zip file, possible?

Post by wfrcrd » 30 Mar 2016 10:51

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...

User avatar
Philip
Posts: 82
Joined: 08 Jun 2015 19:20
Location: Hampshire, UK

Re: Append to zip file, possible?

Post by Philip » 30 Mar 2016 11:09

How are you creating the ZIP file?

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

wfrcrd
Posts: 116
Joined: 27 May 2015 08:57

Re: Append to zip file, possible?

Post by wfrcrd » 30 Mar 2016 11:27

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 !!! ^_^

Post Reply