Pergunta

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 property 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?

Foi útil?

Solução

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

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top