MCPcopy
hub / github.com/arduino/Arduino / prepareDataFolder

Method prepareDataFolder

arduino-core/src/processing/app/Sketch.java:127–133  ·  view source on GitHub ↗

Create the data folder if it does not exist already. As a convenience, it also returns the data folder, since it's likely about to be used.

()

Source from the content-addressed store, hash-verified

125 * about to be used.
126 */
127 public File prepareDataFolder() {
128 File dataFolder = getDataFolder();
129 if (!dataFolder.exists()) {
130 dataFolder.mkdirs();
131 }
132 return dataFolder;
133 }
134
135 public void save() throws IOException {
136 for (SketchFile file : getFiles()) {

Callers 1

addFileMethod · 0.80

Calls 2

getDataFolderMethod · 0.95
existsMethod · 0.45

Tested by

no test coverage detected