Is there a way to overwrite existing files when unpacking from a zip with ZipFile.ExtractToDirectory()?
Thanks,
Marc
1 Answer, 1 is accepted
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.