MCPcopy Index your code
hub / github.com/processing/processing / renameTo

Method renameTo

app/src/processing/app/SketchCode.java:126–136  ·  view source on GitHub ↗
(File what, String ext)

Source from the content-addressed store, hash-verified

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 {

Callers 8

saveStreamMethod · 0.80
saveBytesMethod · 0.80
saveMethod · 0.80
saveFileMethod · 0.80
addTemplateFilesMethod · 0.80
nameCodeMethod · 0.80
backupMethod · 0.80
runMethod · 0.80

Calls 1

makePrettyNameMethod · 0.95

Tested by

no test coverage detected