开发者

How to zip a folder recursively?

开发者 https://www.devze.com 2023-02-01 15:10 出处:网络
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.

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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号