SelectEntries method (fileselector)

Aug 4, 2011 at 1:51 PM
Edited Aug 4, 2011 at 1:52 PM

Hi,

i am using the SelectEntries method of an ZipFile instance with the latest release version (v.1.9.1.6).

 

ICollection<ZipEntry> icZE = null;
using (ZipFile zip = ZipFile.Read(mZipFile))
{
  
  string selectcriteria = "name = 'C\Test Folder\*'";
  icZE = zip.SelectEntries(selectcriteria);
}

 

With version 1.9.1.5 this worked fine. Now it deliveres nothing.

On a side note:

string selectcriteria = "name = C\TestFolder\*"

This still works (as long as you don't need the ' it seems to work. But i can't use it, since the file/folder structure uses spaces.

Thanks in advance for any help.

Coordinator
Aug 4, 2011 at 3:15 PM

Thanks for the report. I would like to look into this further.  What is implied by "C\TestFolder" ?

Is that a local directory called "C", under which there is an additional directory called "TestFolder"?  Are you missing a colon there?

 

Aug 4, 2011 at 3:38 PM
Edited Aug 4, 2011 at 3:38 PM

"C" is a folder in the Zipfile, as is "Test Folder".

With the option * i want to select everything in that folder.

You can also try this with a structure like "name = 'folder1\folder2\*'", while the zip contains the following files (for example):

- folder0\ <- should and was not selected with previous version

- folder0\testfile.txt <- should and was not selected with previous version

- folder1\folder2\ <- should be selected but is not

- folder1\folder2\testfile.txt <- should be selected but is not

- folder1\folder2\testfile2.txt <- should be selected but is not

Regards,

DexMiK

Coordinator
Aug 4, 2011 at 5:40 PM

ok I think I understand that, let me have a look.

 

Coordinator
Aug 4, 2011 at 6:18 PM

I reproduced that problem here.  Looking into a fix now.

Aug 4, 2011 at 8:04 PM

very nice. thank you a lot.

and thanks for those very useful libraries.

Coordinator
Aug 4, 2011 at 9:43 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.