c# sharpziplib adding file to existing archive

前端 未结 7 1201
-上瘾入骨i
-上瘾入骨i 2020-12-11 17:47

am trying to add a file to an existing archive using the following code. When run no errors or exceptions are shown but no files are added to the archive either. Any ideas w

7条回答
  •  無奈伤痛
    2020-12-11 18:28

    I think your Finish call should be before your Close call.

    Update: This looks like a known bug. It's possible it may already have been fixed - you'll need to check your SharpZipLib version to see if it incorporates any fix. If not, you can work around it by copying all files to a new archive, adding the new file, then moving the new archive to the old archive name.

提交回复
热议问题