Oct 18, 2010 at 12:38 PM
Edited Oct 18, 2010 at 12:41 PM
Ok, i will try to explain the problem.
The method ExtractSelectedFiles() offers 5 possibilities to extraxt files. In my usecase I want extraxt all files from a folder and his subfolders (like the problem from cezor). The problem in the ExtractSelectedFiles() method is the following.
If I use the method only with the selectionCriteria it works fine, even recursive (means extract the folder, all subfolders and all files inside the folders)
ZipFile zip = ZipFile.Read("data.zip");
If I want set a extract directory I have to use the 3. method invocation.
zip.ExtractSelectedEntries("Applications\\*.*", "Applications", ".\Result");
In this case the method extract only the files inside the folder "Applications". (not recursive).
I hope you understand my problem. I can´t extract an folder with all subfolders to a target directory. Therefore I use code like in my first post.
"is there another way" means: does a method exist that only get a foldername (without other syntax like *.*) , targetfolder and bool (recursive or not)???
Cheeso: "What's unsatisfactory about what you're doing now?" --> 1. It´s to long, 2. no switch for recursion, 3. more than the foldername is necessary (*.*).
Cheeso: "The way you have done it, "Applications\\*.*", is not recursion." Why not??? I get all files from a folder and his subfolders.