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); }
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: | 302 / 343 |
Version history: | 2 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1020672 - dm_sendFileToOtherMachine_assumeImmutable - assumes original file is never changed (just possibly grown), and remote file isn't changed either. Also resumes if transfer was incomplete |