Commit c10e8a9
committed
Rewrite copyFile using Files.copy.
We had some tests observe incomplete copies pretty frequently, and this
seems to fix it. If for some reason this turns out to be noticeably less
efficient than FileChannel, we can rewrite it back to FileChannel and
loop to make sure it copies everything.
(Committed on behalf of a Googler.)1 parent 09ec0b8 commit c10e8a9
1 file changed
+5
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| 36 | + | |
35 | 37 | | |
36 | 38 | | |
37 | 39 | | |
| |||
185 | 187 | | |
186 | 188 | | |
187 | 189 | | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
196 | 193 | | |
197 | 194 | | |
198 | 195 | | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | 196 | | |
203 | 197 | | |
204 | 198 | | |
| |||
0 commit comments