Download Jar. Libraryless. Click here for Pure Java version (10055L/72K).
!7 p-exp { agiBlue_whiteListMe(); SS idToMD5 = fileServer_IDsAndMD5s(); //pnl(idToMD5); for (File f : listFiles(newFile("/var/www/blobs"))) { print(fileName(f)); int id = parseInt(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); retry(3, r { uploadToFileServerWithFixedID(f, snippetTitle(id), fsI(id)); }); } }
Began life as a copy of #1026059
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: | #1026065 |
Snippet name: | Migrate blobs to new file server [dev.] |
Eternal ID of this version: | #1026065/2 |
Text MD5: | ce0a4ade79f3fc1db8cc21d55069a9c2 |
Transpilation MD5: | c5c553fcdc656536788531425448a21a |
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:36:57 |
Source code size: | 624 bytes / 23 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 286 / 1001 |
Version history: | 1 change(s) |
Referenced in: | -