(File what, String ext)
| 115 | |
| 116 | |
| 117 | protected boolean renameTo(File what, String ext) { |
| 118 | boolean success = file.renameTo(what); |
| 119 | if (success) { |
| 120 | // reassign file because renameTo() (ironically?) does not update |
| 121 | this.file = what; |
| 122 | this.extension = ext; |
| 123 | } |
| 124 | return success; |
| 125 | } |
| 126 | |
| 127 | |
| 128 | public void copyTo(File dest) throws IOException { |
no outgoing calls
no test coverage detected