Documented IOException isn't thrown #6788
Labels
area-System.IO
doc-bug
Problem with the content; needs to be fixed
Pri3
Indicates issues/PRs that are low priority
In ZipFile.ExtractToDirectory and ZipFileExtensions.ExtractToDirectory the Exceptions section says that an IOException is thrown if the target directory exists. This is incorrect, as the method that is eventually called by these, the internal ExtractRelativeToDirectory, works fine with existing directories.
This was first asked in this SO question. I also opened an issue in the runtime repo
dotnet-api-docs/xml/System.IO.Compression/ZipFileExtensions.xml
Line 297 in 46c6267
The text was updated successfully, but these errors were encountered: