How to zip a folder recursively?
I found this other question where Simon show a simple way to zip a folder. However this method doesn't seem to include sub-folders.
Is there some pro开发者_StackOverflow中文版perty or parameter that I have to set so it will also include sub-folders and all files in it? Or is there another way of doing it?
ZipFile.AddDirectory
works recursively i.e. it would add sub-folders. Check the documentation: http://cheeso.members.winisp.net/DotNetZipHelp/html/3d01a0e2-c96e-f135-a78a-3668aefeda43.htm
精彩评论