Libraryless. Click here for Pure Java version (2872L/19K/68K).
1 | !7 |
2 | |
3 | p { |
4 | run(#1006536); |
5 | print("Zipping JavaX-Data and JavaX-Secret (not -Caches and -Backup)..."); |
6 | |
7 | File zip = mkdirsForFile(new File(javaxBackupDir(), programID() + "/" + computerID() + "-" + ymd() + "-" + hms() + ".zip")); |
8 | ZipOutputStream outZip = new ZipOutputStream(newFileOutputStream(zip)); |
9 | int count = 0; |
10 | try { |
11 | count += dir2zip_recurse_honorDontBackupFiles(javaxDataDir(), outZip, "JavaX-Data/", 0); |
12 | count += dir2zip_recurse_honorDontBackupFiles(javaxSecretDir(), outZip, "JavaX-Secret/", 0); |
13 | if (count == 0) zip_addTextFile(outZip, "empty.txt", "Empty!"); |
14 | } finally { |
15 | outZip.close(); |
16 | } |
17 | print("Zip made! " + zip.length() + " bytes, " + zip.getAbsolutePath()); |
18 | } |
Began life as a copy of #1006536
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: | #1006537 |
Snippet name: | Zip JavaX-Data/* and JavaX-Secret/* to JavaX-Backup |
Eternal ID of this version: | #1006537/3 |
Text MD5: | 0711c3053af828f2387f5004013b2b1d |
Transpilation MD5: | c2bd78285b35ef43966840c6e4e0f547 |
Author: | stefan |
Category: | javax |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-12-30 16:49:00 |
Source code size: | 720 bytes / 18 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 586 / 648 |
Version history: | 2 change(s) |
Referenced in: | [show references] |