[
  {
    "Id": "276374",
    "ThreadId": "80606",
    "Html": "<p>I am using Ionic.Utils.Zip in a asp.net web app and it is working great.&nbsp;</p>\r\n<p>However, the&nbsp; zip files are not inheriting the windows file permissions of the it's parent folder.&nbsp; Is there a way to fix this?<br><br>Thanks!</p>\r\n<p>&nbsp;</p>",
    "PostedDate": "2010-01-12T12:26:51.473-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "276383",
    "ThreadId": "80606",
    "Html": "<p>First, if you're using Ionic.Utils.Zip, you are using a very old version of DotNetZip.&nbsp; In older versions (v1.6 and prior) the zip file was created in a temp file folder, and then moved to the final location.&nbsp; This could cause what you are reporting.&nbsp; The v1.9 release does not do it this way, partly because other people complained about the permissions issue.</p>\r\n<p>So, I suggest that you upgrade to the v1.9 release.</p>\r\n<p>AFTER YOU UPGRADE, test it again.</p>\r\n<p>If after you upgrade, the problem still occurs, give me more details.</p>\r\n<p>What happens if you just create a file in the directory, without using DotNetZip?</p>\r\n<p>&nbsp;</p>\r\n<p>&nbsp;</p>",
    "PostedDate": "2010-01-12T12:45:53.143-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "276387",
    "ThreadId": "80606",
    "Html": "<p>Hi, I am using&nbsp; Ionic.Utils.Zip from 11/2008.&nbsp;</p>\r\n<p>I just downloaded the lastest version, but I don't see an Ionic.Utils.Zip in the package, is there another package I should download?<br><br>Thanks!</p>\r\n<p>&nbsp;</p>\r\n<p>&nbsp;</p>",
    "PostedDate": "2010-01-12T12:51:21.473-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "276407",
    "ThreadId": "80606",
    "Html": "<p>The DLL has been renamed Ionic.Zip.DLL.</p>\r\n<p>Therre is no Ionic.Utils.Zip.DLL.&nbsp; &nbsp; The namespace has changed as well, in the same way.&nbsp;</p>",
    "PostedDate": "2010-01-12T13:31:07.633-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "276409",
    "ThreadId": "80606",
    "Html": "<p>Oh ok, I see...so I added the new dll reference to my project, and I changed the namespace in my code, recompiled, but I am still having the same issue where the newly created ZIP file does not have the same permissions as it's parent folder.</p>\r\n<p>BTW, I am using it like this:</p>\r\n<p>\r\n<div style=\"color:Black;background-color:White\">\r\n<pre><span style=\"color:Blue\">Dim</span> strZipFileName <span style=\"color:Blue\">As</span> <span style=\"color:Blue\">String</span> = strNewPath &amp; <span style=\"color:#A31515\">&quot;\\&quot;</span> &amp; zipFileName &amp; <span style=\"color:#A31515\">&quot;.zip&quot;</span>\r\n        <span style=\"color:Blue\">Dim</span> zip <span style=\"color:Blue\">As</span> ZipFile\r\n        <span style=\"color:Blue\">Dim</span> dirToZip <span style=\"color:Blue\">As</span> <span style=\"color:Blue\">String</span> = strNewPath\r\n        <span style=\"color:Blue\">Try</span>\r\n            <span style=\"color:Blue\">If</span> System.IO.File.Exists(strZipFileName) <span style=\"color:Blue\">Then</span>\r\n                System.IO.File.Delete(strZipFileName)\r\n            <span style=\"color:Blue\">End</span> <span style=\"color:Blue\">If</span>\r\n            zip = <span style=\"color:Blue\">New</span> ZipFile(strZipFileName)\r\n            <span style=\"color:Green\">'Response.Write(&quot;Path:&quot; &amp; dirToZip &amp; &quot;&lt;br&gt;&lt;br&gt;&quot;)</span>\r\n            zip.AddDirectory(dirToZip)\r\n            zip.Save()\r\n</pre>\r\n</div>\r\n</p>\r\n<p>&nbsp;The dirToZip folder is the parent folder and the one with all the proper permissions.&nbsp;</p>\r\n<p>&nbsp; I am not sure if that has anything to do with it.</p>\r\n<p>&nbsp;</p>\r\n<p>Thanks!</p>\r\n<p>&nbsp;</p>\r\n<p>&nbsp;</p>",
    "PostedDate": "2010-01-12T13:36:40.577-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "276420",
    "ThreadId": "80606",
    "Html": "<p>You need to enclose the ZipFile object in a <a href=\"http://msdn.microsoft.com/en-us/library/htd05whh.aspx\">Using</a> clause.&nbsp; See any code snip I have ever provided for an example.</p>\r\n<p>Also - I don't know what you mean by &quot;dirToZip is the parent folder&quot; .&nbsp; But... If the zipfile is saved into the folder it is zipping, things can get messy.&nbsp; Don't do that.</p>\r\n<p>Also what happens if you create a text file in the same directory.&nbsp; Does it behave differently from the ZIP file with respect to the inherited permissions.</p>\r\n<p>&nbsp;</p>",
    "PostedDate": "2010-01-12T13:55:00.837-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]