1 | // returns number of files written to zip file |
2 | static int zipDataDir(S progID, File outZip) { |
3 | ret dir2zip_recurse(getProgramDir(progID), outZip); |
4 | } |
5 | |
6 | static File zipDataDir(S progID) { |
7 | File file = null; |
8 | while licensed { |
9 | S date = ymd() + "-" + hms(); |
10 | file = userHome("JavaX-Backup/" + formatSnippetIDOpt(progID) + ".data." + date + ".zip"); |
11 | if (file.exists()) sleep(100); else break; |
12 | } |
13 | zipDataDir(progID, file); |
14 | ret file; |
15 | } |
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: | 480 / 519 |
Referenced in: | [show references] |