1 | static void moveFile(File a, File b) { |
2 | if (!renameFile(a, b)) |
3 | fail("File move failed: " + a + " to " + b); |
4 | } |
Began life as a copy of #1002706
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1015320 |
Snippet name: | moveFile - smarter version of File.renameTo(); asserts success. second argument is a target FILE NAME, not the DIR to put it in |
Eternal ID of this version: | #1015320/4 |
Text MD5: | 37cd8dc9cedc2add551ff7907bc4addb |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-10-18 13:01:02 |
Source code size: | 117 bytes / 4 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 411 / 524 |
Version history: | 3 change(s) |
Referenced in: | [show references] |