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

10
LINES

< > BotCompany Repo | #1019929 // fileNamesInZipWithExtension

JavaX fragment (include)

1  
static LS fileNamesInZipWithExtension(ZipFile zip, S ext) {
2  
  fS suffix = addPrefixIfNotEmpty2(".", ext);
3  
  ret [S name : listZipFile(zip) | ewic(name, suffix)];
4  
}
5  
6  
7  
static LS fileNamesInZipWithExtension(File zip, S ext) {
8  
  temp ZipFile zipFile = openZipFile(zip);
9  
  ret fileNamesInZipWithExtension(zipFile, ext);
10  
}

Author comment

Began life as a copy of #1009762

download  show line numbers  debug dex  old transpilations   

Travelled to 9 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1019929
Snippet name: fileNamesInZipWithExtension
Eternal ID of this version: #1019929/1
Text MD5: de1d3d469e4ed7fe514d045f6539ccdf
Author: stefan
Category: javax / io
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-12-01 15:35:16
Source code size: 325 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 190 / 223
Referenced in: [show references]