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.
()
| 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()) { |
no test coverage detected