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

10
LINES

< > BotCompany Repo | #1019929 // fileNamesInZipWithExtension

JavaX fragment (include)

static LS fileNamesInZipWithExtension(ZipFile zip, S ext) {
  fS suffix = addPrefixIfNotEmpty2(".", ext);
  ret [S name : listZipFile(zip) | ewic(name, suffix)];
}


static LS fileNamesInZipWithExtension(File zip, S ext) {
  temp ZipFile zipFile = openZipFile(zip);
  ret fileNamesInZipWithExtension(zipFile, ext);
}

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: 187 / 220
Referenced in: [show references]