1 | svoid dm_sendFileToOtherMachineIfDifferent(File f, S computerID, S remotePath) {
|
2 | if (!fileExists(f)) ret; |
3 | S remoteMD5 = dm_evalOnOtherMachine(computerID, "md5OfFile(" + quote(remotePath) + ")");
|
4 | if (eq(remoteMD5, md5OfFile(f))) ret with print("File identical: " + f);
|
5 | |
6 | dm_sendFileToOtherMachine(f, computerID, remotePath); |
7 | } |
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: | 546 / 594 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |