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

6
LINES

< > BotCompany Repo | #1015358 // zip_addFileInBaseDir

JavaX fragment (include)

1  
static void zip_addFileInBaseDir(ZipOutputStream outZip, File f) ctex {
2  
  ping();
3  
  if (f == null || !f.isFile()) ret;
4  
  outZip.putNextEntry(new ZipEntry(f.getName()));
5  
  copyFileToStream(f, outZip);
6  
}

Author comment

Began life as a copy of #1006539

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1015358
Snippet name: zip_addFileInBaseDir
Eternal ID of this version: #1015358/3
Text MD5: e9a3ccbbcfbef1825cef10794e368786
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-05-13 13:06:12
Source code size: 206 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 432 / 456
Version history: 2 change(s)
Referenced in: [show references]