Libraryless. Click here for Pure Java version (1929L/13K).
1 | // true if it bootstrapped |
2 | sbool bootstrapDataFrom(S progID) { |
3 | File otherDir = javaxDataDir(progID); |
4 | File myDir = programDir(); |
5 | if (sameFile(otherDir, myDir)) false; |
6 | if (!directoryIsEmpty(myDir)) false; |
7 | print("Importing data from: " + progID + " to " + programID()); |
8 | copyAllFilesInDirectory_rec_noOverwrite(otherDir, myDir); |
9 | true; |
10 | } |
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1024339 |
Snippet name: | boostrapDataFrom - copy all data from another program's (JavaX-Data only) if our data directory is empty |
Eternal ID of this version: | #1024339/5 |
Text MD5: | 9ea7fe27e6cf6156be2d7a3bc23ab048 |
Transpilation MD5: | 673687fab1a1191b8aaea10fcbd2ab80 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-08-04 13:57:56 |
Source code size: | 355 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 271 / 342 |
Version history: | 4 change(s) |
Referenced in: | [show references] |