1 | static File copyFile(File src, File dest) ctex { |
2 | FileInputStream inputStream = new FileInputStream(src.getPath()); |
3 | FileOutputStream outputStream = newFileOutputStream(dest.getPath()); |
4 | try { |
5 | copyStream(inputStream, outputStream); |
6 | inputStream.close(); |
7 | } finally { |
8 | outputStream.close(); |
9 | } |
10 | ret dest; |
11 | } |
download show line numbers debug dex old transpilations
Travelled to 17 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, jtubtzbbkimh, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, sawdedvomwva, tslmcundralx, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1000843 |
Snippet name: | copyFile - returns dest |
Eternal ID of this version: | #1000843/4 |
Text MD5: | f2273ef3daa6893bb3c374c134993bc3 |
Author: | stefan |
Category: | |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-09-22 16:03:39 |
Source code size: | 331 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 834 / 1525 |
Version history: | 3 change(s) |
Referenced in: | [show references] |