locked
FastZip filefilter expression to filter pdf's RRS feed

  • Question

  • User-1799680607 posted

    I am trying to zip all the pdf files in a folder using FastZip (ICSharpCode.SharpZipLib.Zip).

    FastZip fz = new FastZip();
                fz.CreateZip(outputPathAndFile, inputFolderPath, true, filefilter);

    The filter expression "+\\ .pdf$" doesn't work. What should be the filter expression to include only pdf's in the specified folderPath.

    Thanks. 

    Thursday, February 2, 2012 4:18 PM

Answers

  • User-1910946339 posted

    \\.pdf$

    I typed "FastZip CreateZip" in to Google and the first result had the answer to your question complete with an explanation.  I've never heard of FastZip before.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, February 2, 2012 5:09 PM

All replies

  • User-1910946339 posted

    \\.pdf$

    I typed "FastZip CreateZip" in to Google and the first result had the answer to your question complete with an explanation.  I've never heard of FastZip before.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, February 2, 2012 5:09 PM
  • User-1799680607 posted

    I am sorry. I have updated the filter in the Catch ( For a second try if accessing network drive fails) and forgot to do it in the try block. 

    Thanks.

    Thursday, February 2, 2012 5:56 PM