what I'm trying to do is add a list of folders and files all to the root of my Zip file, using the Ionic Zip library (c#).
Here's what I have so far
string k = "B:/My Documents/Workspace";
private void button1_Click(object sender, EventArgs e)
{
using (ZipFile zip = new ZipFile())
{
//add directory, give it a name
zip.AddDirectory(k);
zip.Save("t.zip");
}
}
Now, I want my zip to be looking like this.
- t.zip
- Random Files and Folder
But it's looking like this.
- t.zip
- t (folder)
- Random files and folders
- t (folder)
Any help would be appreciated, Thank you.