[
  {
    "Id": "252415",
    "ThreadId": "73813",
    "Html": "<p>Hi Can you please let me know is it possible to untar a GNU TAR file using the DotNetZip library?.</p>\r\n<p>&nbsp;</p>\r\n<p>If it is not possible is there any other Lib in C# which can do the untar?</p>\r\n<p>&nbsp;</p>\r\n<p>&nbsp;</p>\r\n<p>Thanks in advance for your time</p>\r\n<p>Sumanth BR</p>",
    "PostedDate": "2009-11-02T06:28:57.72-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "252637",
    "ThreadId": "73813",
    "Html": "<p>No - DotNetZip does not do &quot;tar&quot; .&nbsp;</p>",
    "PostedDate": "2009-11-02T19:27:17.917-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "253586",
    "ThreadId": "73813",
    "Html": "<p>ps: Here's a nice, easy tar library for you:</p>\r\n<p><a href=\"http://cheeso.members.winisp.net/srcview.aspx?dir=Tar&file=Tar.cs\">http://cheeso.members.winisp.net/srcview.aspx?dir=Tar&amp;file=Tar.cs</a></p>",
    "PostedDate": "2009-11-04T19:58:07.32-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "253600",
    "ThreadId": "73813",
    "Html": "<p>Hi Cheeso,</p>\r\n<p>&nbsp;</p>\r\n<p>Thanks for the information.</p>",
    "PostedDate": "2009-11-04T20:50:48.383-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "257433",
    "ThreadId": "73813",
    "Html": "<p>Hi Cheeso,</p>\r\n<p>thanks for the tar library :)</p>\r\n<p>i have the library compiled as tar.exe and tar.dll....</p>\r\n<p>the tar.exe works perfectly...</p>\r\n<p>how to create a tar from dll in vb.net?</p>\r\n<p>i have&nbsp; 2 files in my directory ...</p>\r\n<p>example for folder..</p>\r\n<p>c:\\temp\\test</p>\r\n<p>as i add the 2 files to one tar?</p>\r\n<p>&nbsp;</p>\r\n<p>sorry for my bad english ;/</p>\r\n<p>&nbsp;</p>\r\n<p>&nbsp;</p>",
    "PostedDate": "2009-11-16T02:30:40.877-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "257533",
    "ThreadId": "73813",
    "Html": "<p>Joe,</p>\r\n<p>It takes just one line in VB.NET to make a tar archive:</p>\r\n<pre>     Ionic.Tar.CreateArchive(archiveName, fileNames)</pre>\r\n<p>If you specify the names of the files explicitly, it might look like this:</p>\r\n<pre>     Ionic.Tar.CreateArchive(&quot;MyArchive.tar&quot;, new String() {&quot;file1.txt&quot;, &quot;file2.txt&quot;})</pre>\r\n<p>You should get the updated Tar.cs source, and re-build the DLL. I reworked the library to make it simpler to use, and add intellisense documentation.&nbsp; It's still available at <a href=\"http://cheeso.members.winisp.net/srcview.aspx?dir=Tar\">http://cheeso.members.winisp.net/srcview.aspx?dir=Tar</a></p>\r\n<p>Good luck.</p>",
    "PostedDate": "2009-11-16T07:40:43.37-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "259020",
    "ThreadId": "73813",
    "Html": "<p>Hi Cheeso,</p>\r\n<p>&nbsp;</p>\r\n<p>gib thanks .. works perfectly... :)</p>",
    "PostedDate": "2009-11-20T03:03:36-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "474869",
    "ThreadId": "73813",
    "Html": "<p>Hi there Cheeso, I just wanted to get your input / perhaps make others aware of a situation that I've run into, and my remedy of it (while im sure it's not the most efficient or the best way to handle it)</p>\r\n<p>I find myself in need of regularly obtaining the 5 day outlook from NOAA's NWS service that provides GIS shapefile data.</p>\r\n<p>The way they structure their .TAR files are without a PATH in them....this caused (or so it seemed to me) a problem in the library during this call:</p>\r\n<p><span style=\"color:blue;font-size:9.5pt\">if</span><span style=\"font-size:9.5pt\"> (!<span style=\"color:#2b91af\">Directory</span>.Exists(p))</span></p>\r\n<p><span style=\"font-size:9.5pt\">&nbsp;&nbsp; <span style=\"color:#2b91af\">Directory</span>.CreateDirectory(p);</span></p>\r\n<p>contained within the List &gt;&gt; if wantExtract</p>\r\n<p>my solution was (because I was in fact using the library in a Windows Form VB project) to add this:</p>\r\n<p><span style=\"color:blue;font-size:9.5pt\">case</span><span style=\"font-size:9.5pt\"><span style=\"color:#2b91af\">TarEntryType</span>.File_Contiguous:</span></p>\r\n<p><span style=\"font-size:9.5pt\">&nbsp;</span><span style=\"font-size:9.5pt\">&nbsp;&nbsp; <span style=\"color:blue\">string</span> p = <span style=\"color:#2b91af\">Path</span>.GetDirectoryName(name);</span></p>\r\n<p><span style=\"font-size:9.5pt\">&nbsp;&nbsp; <span style=\"color:green\">// ALPHABETAONE ADDED on 07/30/2010 REMOVE OR CHANGE THIS IF NECESSARY</span></span></p>\r\n<p><span style=\"font-size:9.5pt\">&nbsp;&nbsp; <span style=\"color:blue\">if</span> (p == <span style=\"color:#a31515\">&quot;&quot;</span>)</span></p>\r\n<p><span style=\"font-size:9.5pt\">&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;p = System.Windows.Forms.<span style=\"color:#2b91af\">Application</span>.StartupPath;</span></p>\r\n<p><span style=\"font-size:9.5pt\">&nbsp;&nbsp; <span style=\"color:green\">// ALPHABETAONE ADDED on 07/30/2010 REMOVE OR CHANGE THIS IF NECESSARY</span></span></p>\r\n<p><span style=\"font-size:9.5pt\">&nbsp;&nbsp; <span style=\"color:blue\">if</span> (!<span style=\"color:#2b91af\">Directory</span>.Exists(p))</span></p>\r\n<p><span style=\"font-size:9.5pt\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style=\"color:#2b91af\">Directory</span>.CreateDirectory(p);</span></p>\r\n<p><span style=\"font-size:9.5pt\">&nbsp;</span></p>\r\n<p><span style=\"font-size:9.5pt\">&nbsp;&nbsp; output = _internal_GetExtractOutputStream(name);</span></p>\r\n<p><span style=\"font-size:9.5pt\">&nbsp;&nbsp; <span style=\"color:blue\">break</span>;</span></p>\r\n<p>&nbsp;</p>\r\n<p>&nbsp;</p>\r\n<p>If there is a more elegant way to handle this, (which Im sure there is since I'm not at all a C# programmer) perhaps you could implement it? Otherwise some fantastic libraries!!</p>\r\n<p>&nbsp;</p>\r\n<p>AB1</p>\r\n<p>&nbsp;</p>\r\n<p>P.S. This is the link of the .TAR file on their site if you want to use it as a guideline: <a href=\"ftp://ftp.hpc.ncep.noaa.gov/shapefiles/qpf/5day/QPF120hr_Day1-5_latest.tar\">ftp://ftp.hpc.ncep.noaa.gov/shapefiles/qpf/5day/QPF120hr_Day1-5_latest.tar</a></p>",
    "PostedDate": "2010-07-30T12:07:12.757-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]