EldoS | Feel safer!

Software components for data protection, secure storage and transfer

TelZipWrite - Ability to overwrite existing .zip file?

Also by EldoS: Rethync
The cross-platform framework that simplifies synchronizing data between mobile and desktop applications and servers and cloud storages
#29235
Posted: 04/11/2014 14:53:46
by Dennis Spading (Basic support level)
Joined: 04/11/2014
Posts: 5

Hi,

Simple question.

Is there any options/properties to overwrite existing compressed .zip file or do we need to check if the file exists, and then compress?

I don't want to write any more code than necessary.

I'm using TElZipWriter.

Thank you!

Dennis
#29236
Posted: 04/12/2014 01:03:36
by Eugene Mayevski (EldoS Corp.)

Depends on the method. If you call Compress(FileName) method, and `Filename` file exists, OnUserActionNeeded event is triggered and your code can tell the component, what to do - abort the operation or ignore the problem. If you choose "Ignore", the file is overwritten.


Sincerely yours
Eugene Mayevski
#29246
Posted: 04/14/2014 10:02:38
by Dennis Spading (Basic support level)
Joined: 04/11/2014
Posts: 5

Eugene,

Thanks for the prompt reply!

Dennis

Reply

Statistics

Topic viewed 529 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!