Skip to content
Snippets Groups Projects
Commit 25065b11 authored by tjc's avatar tjc
Browse files

change containsEntry to be more flexible

git-svn-id: svn+ssh://svn.internal.sanger.ac.uk/repos/svn/pathsoft/artemis/trunk@13731 ee4ac58c-ac51-4696-9907-e4b3aa274f04
parent 1b00461a
No related branches found
No related tags found
No related merge requests found
......@@ -97,10 +97,10 @@ public class ZipFileDocument extends FileDocument
while ((ze=zis.getNextEntry())!=null)
{
if( !ze.isDirectory() &&
(ze.getName().equals(zipEntryName) || ze.getName().equals(zipEntryName+".gz")))
(ze.getName().equals(zipEntryName) || ze.getName().equals(zipEntryName+".gz") ||
ze.getName().endsWith("/"+zipEntryName) || ze.getName().endsWith("/"+zipEntryName+".gz")))
{
if(ze.getName().equals(zipEntryName+".gz"))
zipEntryName = ze.getName();
zipEntryName = ze.getName();
zis.close();
return true;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment