MCPcopy Index your code
hub / github.com/benfry/processing4 / renameTo

Method renameTo

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

Source from the content-addressed store, hash-verified

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 {

Callers 11

saveStreamMethod · 0.80
saveBytesMethod · 0.80
saveMethod · 0.80
saveFileMethod · 0.80
discoverMethod · 0.80
addTemplateFilesMethod · 0.80
nameCodeMethod · 0.80
renameSketchMethod · 0.80
backupMethod · 0.80
downloadAvailableListMethod · 0.80
archiveCurrentMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected