// returns number of files written to zip file static int zipDataDir(S progID, File outZip) { ret dir2zip_recurse(getProgramDir(progID), outZip); } static File zipDataDir(S progID) { File file = null; while licensed { S date = ymd() + "-" + hms(); file = userHome("JavaX-Backup/" + formatSnippetIDOpt(progID) + ".data." + date + ".zip"); if (file.exists()) sleep(100); else break; } zipDataDir(progID, file); ret file; }
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, sawdedvomwva, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1006133 |
| Snippet name: | zipDataDir |
| Eternal ID of this version: | #1006133/1 |
| Text MD5: | 792634d925e28390ff45de87c811f750 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2016-12-21 12:51:24 |
| Source code size: | 459 bytes / 15 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 668 / 726 |
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |