Libraryless. Click here for Pure Java version (2872L/19K/68K).
!7 p { run(#1006536); print("Zipping JavaX-Data and JavaX-Secret (not -Caches and -Backup)..."); File zip = mkdirsForFile(new File(javaxBackupDir(), programID() + "/" + computerID() + "-" + ymd() + "-" + hms() + ".zip")); ZipOutputStream outZip = new ZipOutputStream(newFileOutputStream(zip)); int count = 0; try { count += dir2zip_recurse_honorDontBackupFiles(javaxDataDir(), outZip, "JavaX-Data/", 0); count += dir2zip_recurse_honorDontBackupFiles(javaxSecretDir(), outZip, "JavaX-Secret/", 0); if (count == 0) zip_addTextFile(outZip, "empty.txt", "Empty!"); } finally { outZip.close(); } print("Zip made! " + zip.length() + " bytes, " + zip.getAbsolutePath()); }
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: | 585 / 647 |
Version history: | 2 change(s) |
Referenced in: | -