So I'm using ICSharpCode.SharpZipLib.Zip.FastZip to compress every single file in folder but the problem is that I have files like "Test.csv", "ReportTest.csv", "EmailTest.csv" etc. All of those files are added to the zip when I run the following:
FastZip fz = new FastZip();
fz.CreateZip("Test.zip", "C:\path", false, "Test.csv$");
If I change last parm to be "^Test.csv$" none of the files is added to the zip so it ends up being empty.
I even tried using the full path to the file as a 4th parm but zip file was empty as well.
I also checked the source code and tried the example that is shown in comments: "The following expression includes all name ending in '.dat' with the exception of 'dummy.dat': "+\.dat$;-^dummy\.dat$"", only I did it something like "+\.csv$;-^Test\.csv$". The zip was containing all csv files that are in a source folder plus Test.csv one as well.
The question is: if FileFilter parm is supposed to be RegEx expression why it doesn't recognize "^" character as the beginning of the line? What FileFilter should be used to compress only the "Test.csv" file (an exact match search on the file name)?