Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

12
LINES

< > BotCompany Repo | #1021042 // copyConceptsFile

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (2527L/16K).

svoid copyConceptsFile(S dbID1, S dbID2) {
  for (S ending : ll("", ".gz")) {
    File f1 = getProgramFile(dbID1, "concepts.structure" + ending);
    File f2 = getProgramFile(dbID2, "concepts.structure" + ending);
    if (!f2.exists() && f1.exists())
      copyFile(f1, f2);
  }
}

static File copyConceptsFile(S dbID, File dest) {
  ret copyFile(conceptsFile(dbID), dest);
}

Author comment

Began life as a copy of #1004931

download  show line numbers  debug dex  old transpilations   

Travelled to 9 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1021042
Snippet name: copyConceptsFile
Eternal ID of this version: #1021042/4
Text MD5: 020afa84cf1a2ffd02a102d8947fd797
Transpilation MD5: 2a5883a997b6cbce0a3e89df548e3d32
Author: stefan
Category: javax / concepts
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-03-09 21:49:51
Source code size: 386 bytes / 12 lines
Pitched / IR pitched: No / No
Views / Downloads: 231 / 282
Version history: 3 change(s)
Referenced in: [show references]