我有fileName
和contentBytes
,应添加到subfolder
,然后subfolder
应添加到rootfolder
,然后rootfolder
}应添加到ZIP
中。
目前我所拥有的是(zip
所在的地方):
using (var zip = ZipHelper.Initialize()) {
var subfolder= "Prefix" + fileName;
zip.AddEntry(subfolder, contentBytes);
}
我需要在此结构中再添加一个级别:
- contentBytes into subfolder
- subfolder into rootfolder and then:
- zip.AddEntry(rootfolder , subfolderContent);