1 | static bool renameFile(File a, File b) {
|
2 | mkdirsForFile(b); |
3 | ret a.renameTo(b); |
4 | } |
5 | |
6 | static bool renameFile(File a, S newName) {
|
7 | ret renameFile(a, fileInSameDir(a, newName)); |
8 | } |
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: | #1002706 |
| Snippet name: | renameFile - smarter version of File.renameTo() |
| Eternal ID of this version: | #1002706/9 |
| Text MD5: | f73d160691c7867df390342310baf00c |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-10-08 12:44:53 |
| Source code size: | 185 bytes / 8 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 1108 / 1188 |
| Version history: | 8 change(s) |
| Referenced in: | [show references] |