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

Method archiveCurrent

app/src/processing/app/ui/Theme.java:147–150  ·  view source on GitHub ↗

If the user has a custom theme they've modified, rename it to theme.001, theme.002, etc. as a backup to avoid overwriting anything they've created.

()

Source from the content-addressed store, hash-verified

145 * theme.002, etc. as a backup to avoid overwriting anything they've created.
146 */
147 static public boolean archiveCurrent() {
148 File backupFile = nextArchiveFile();
149 return getSketchbookFile().renameTo(backupFile);
150 }
151
152
153 static private File nextArchiveFile() {

Callers 2

setCurrentIndexMethod · 0.95
initMethod · 0.95

Calls 3

nextArchiveFileMethod · 0.95
getSketchbookFileMethod · 0.95
renameToMethod · 0.80

Tested by

no test coverage detected