(File what, String ext)
| 124 | |
| 125 | |
| 126 | protected boolean renameTo(File what, String ext) { |
| 127 | // System.out.println("renaming " + file); |
| 128 | // System.out.println(" to " + what); |
| 129 | boolean success = file.renameTo(what); |
| 130 | if (success) { |
| 131 | this.file = what; // necessary? |
| 132 | this.extension = ext; |
| 133 | makePrettyName(); |
| 134 | } |
| 135 | return success; |
| 136 | } |
| 137 | |
| 138 | |
| 139 | public void copyTo(File dest) throws IOException { |
no test coverage detected