1

I try to use file filter and directory filter to choose specified files and folders , but the files in sub folder are affected by file filter .

Example :

file filter : @"//1.txt$;2.txt$"

directory filter : @"//sub$"

Only 1.txt & 2.txt were compressed in sub folder , and i want all the files in sub folder compressed.

Arthur
  • 23
  • 6

1 Answers1

1

I assume that fastzip means the one class of SharpZipLib. According to the documentation https://github.com/icsharpcode/SharpZipLib/wiki/FastZip the parameter for fileFilter is optional. If null is passed, all files in the specified folder should be compressed

Noren
  • 339
  • 3
  • 6
  • Thank you for your answer . The 1.txt & 2.txt are in the same parent folder of "sub" folder , and i want theses files to be compressed but not the files in "sub" folder. – Arthur Oct 09 '18 at 08:44
  • So you want to exclude the "sub" folder? – Noren Oct 09 '18 at 09:20