zipstorer

Zip a folder having subfolders using zipstorer class

你离开我真会死。 提交于 2019-12-12 01:55:24
问题 I am using ZIpstorer class library to compress files. I am able to zip a file by calling zip.AddFile procedure. But I want to zip folders which has subfolders too. So the resulting zip file should have folder and subfolder structure inside the zip file normally. I am not able to do it. if i process each file by looping all folders and sub folders and then if call zip.Addfile then it will result in zip file with all the files inside it without a directory structure. So how can i zip a folder