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

Method checkSketchFolder

app/src/processing/app/Base.java:1856–1865  ·  view source on GitHub ↗

Check through the various modes and see if this is a legit sketch. Because the default mode will be the first in the list, this will always prefer that one over the others.

(File subfolder, String item)

Source from the content-addressed store, hash-verified

1854 * prefer that one over the others.
1855 */
1856 File checkSketchFolder(File subfolder, String item) {
1857 for (Mode mode : getModeList()) {
1858 File entry = new File(subfolder, item + "." + mode.getDefaultExtension()); //$NON-NLS-1$
1859 // if a .pde file of the same prefix as the folder exists..
1860 if (entry.exists()) {
1861 return entry;
1862 }
1863 }
1864 return null;
1865 }
1866
1867
1868 // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Callers 1

addSketchesMethod · 0.95

Calls 2

getModeListMethod · 0.95
getDefaultExtensionMethod · 0.45

Tested by

no test coverage detected