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

21
LINES

< > BotCompany Repo | #1026059 // Migrate SourceForge snippets to new file server [OK]

JavaX source code (desktop) [tags: use-pretranspiled] - run with: x30.jar

Download Jar. Libraryless. Click here for Pure Java version (10085L/72K).

!7

p-exp {
  agiBlue_whiteListMe();
  SS idToMD5 = fileServer_IDsAndMD5s();
  //pnl(idToMD5);
  for (File f : listFilesStartingWith("blob_", programDir(#1010733))) {
    print(fileName(f));
    int id = parseInt(dropPrefix("blob_", fileName(f)));
    if (id == 0) continue with print("Skipping: " + f);
    S md5 = idToMD5.get(str(id));
    S newMD5 = fileMD5(f);
    if (nempty(md5))
      if (eq(md5, newMD5))
        continue with print("Snippet " + id + " exists");
      else
        continue with print("Snippet differs? " + id);
    
    uploadToFileServerWithFixedID(f, snippetTitle(id), fsI(id));
  }
}

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: #1026059
Snippet name: Migrate SourceForge snippets to new file server [OK]
Eternal ID of this version: #1026059/8
Text MD5: d8932cdc018c674bda9200e21f9fb97c
Transpilation MD5: 30f497c65a5d5d9d4212280d5a278f71
Author: stefan
Category: javax / networking
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-11-18 21:17:00
Source code size: 632 bytes / 21 lines
Pitched / IR pitched: No / No
Views / Downloads: 163 / 738
Version history: 7 change(s)
Referenced in: [show references]