Set a path to different data folder

Hi everybody,

I have two different sets of images that I need to keep separate. I have one set of images in the regular data folder. I am selecting these images by putting them in an array

PImage[] images = new PImage[maxImages];

Which works fine.

However, the second bath of images are in a folder called data2.

I need to also put them into a separate array.

Can anyone please tell the best way to this (if is possible?)

Thanks,

Opt Out

1 Like

Use my code example from here:

But replace final File dir = dataFile(""); w/ final File dir = sketchFile("data2");

3 Likes

Thanks GoToLoop will give it a try!