I wonder if there is a way to use fastzip for a zip directory, but include only certain types of files. I am thinking of using something like:
public static void ZipFiles(string DirectoryToZip, string ZipedFile, string fileFilter, string folderFilter) {
FastZip fz = new FastZip();
fz.CreateEmptyDirectories = true;
fz.CreateZip(ZipedFile, DirectoryToZip, true, fileFilter, folderFilter);
}
The only problem is what fileFilteris given in string, not in arrays.
Any ideas?
source
share