Overwrite existing files when extract ZIP

1 Answer 729 Views
ZipLibrary
Fit2Page
Top achievements
Rank 2
Iron
Iron
Iron
Fit2Page asked on 05 May 2021, 02:11 PM

Hi,

 

Is there a way to overwrite existing files when unpacking from a zip with ZipFile.ExtractToDirectory()?

 

Thanks,

Marc

1 Answer, 1 is accepted

Sort by
0
Tanya
Telerik team
answered on 07 May 2021, 09:35 AM

Hi Marc,

The ExtractToDirectory() method currently doesn't provide an option to overwrite an existing file and I have created a request about that on your behalf: ZipLibrary: Allow ZipFile.ExtractToDirectory() to overwrite existing files when extract ZIP. Make sure to cast your vote for its implementation and subscribe to the request if you would like to receive updates about status changes on it. In the description of the item, you will also find an alternative approach enabling you to replace the file.

Hope this is helpful.

Regards,
Tanya
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
ZipLibrary
Asked by
Fit2Page
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Tanya
Telerik team
Share this question
or