This project is read-only.

Create subdir

Jan 31, 2011 at 10:06 AM
Edited Feb 24, 2011 at 3:47 PM

I have 2 questions.


I want create a subfolder in my archive, actually i create a Dictionary.

Dictionary<string, string> TestDic

fileinfo aFile = original file

string aNewFile = SubFolder/

TestDic.Add(aNewFile, aFile.fullpath);


after i use CompressFileDictionary

With 2 simple passage i can create an archive with a subfolder, but this operation it's very very very slow.

if i compress a directory with 10,000 files in the normal way to use a few minutes, with the sample, i use one hour.

how i can make that in the fast way?


The second:

I want to unzip all files in the archive by deleting the tree.

I have one archive with 3 files




if i unzip i have 2 subfolder (001, 002), i want the file 1.txt, 2.txt, 3.txt without a subfolder, how can i make that?


for me are very important the performance

sorry for my english and Thanks to all