Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

12
LINES

< > BotCompany Repo | #1016740 // zipFileContains

JavaX fragment (include)

1  
static bool zipFileContains(File inZip, S fileName) ctex {
2  
  ZipFile zip = new ZipFile(inZip);
3  
  try {
4  
    ret zipFileContains(zip, fileName);
5  
  } finally {
6  
    zip.close();
7  
  }
8  
}
9  
    
10  
static bool zipFileContains(ZipFile zip, S fileName) ctex {
11  
  ret zip.getEntry(fileName) != null;
12  
}

Author comment

Began life as a copy of #1012228

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1016740
Snippet name: zipFileContains
Eternal ID of this version: #1016740/1
Text MD5: 9afed93d04ca99d4900d4084d282bff4
Author: stefan
Category: javax / i.o.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-06-30 17:10:51
Source code size: 295 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 414 / 423
Referenced in: [show references]