DotNetZip: How to extract files, but ignoring the path in the zipfile?

后端 未结 4 1641
借酒劲吻你
借酒劲吻你 2021-02-14 03:33

Trying to extract files to a given folder ignoring the path in the zipfile but there doesn\'t seem to be a way.

This seems a fairly basic requirement given all the other

4条回答
  •  有刺的猬
    2021-02-14 03:45

    That will fail if there are 2 files with equal filenames. For example files\additionalfiles\file1.txt temp\file1.txt

    First file will be renamed to file1.txt in the zip file and when the second file is trying to be renamed an exception is thrown saying that an item with the same key already exists

提交回复
热议问题