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

7
LINES

< > BotCompany Repo | #1020615 // dm_sendFileToOtherMachineIfDifferent

JavaX fragment (include)

svoid dm_sendFileToOtherMachineIfDifferent(File f, S computerID, S remotePath) {
  if (!fileExists(f)) ret;
  S remoteMD5 = dm_evalOnOtherMachine(computerID, "md5OfFile(" + quote(remotePath) + ")");
  if (eq(remoteMD5, md5OfFile(f))) ret with print("File identical: " + f);
  
  dm_sendFileToOtherMachine(f, computerID, remotePath);
}

Author comment

Began life as a copy of #1020607

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1020615
Snippet name: dm_sendFileToOtherMachineIfDifferent
Eternal ID of this version: #1020615/3
Text MD5: 6d91f2250c0de54428953c13561fa8be
Author: stefan
Category: javax / stefan's os
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-12-28 14:18:47
Source code size: 340 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 235 / 274
Version history: 2 change(s)
Referenced in: [show references]