Use my code example from here:
But replace final File dir = dataFile(""); w/ final File dir = sketchFile("data2");
final File dir = dataFile("");
final File dir = sketchFile("data2");