You can initialize the array's dimension either in the declaration (outside of setup()) or inside setup(), both are correct. There is not always a "proper way" (in the sense of unique), but there are several improper ways, alas...

The initialization of the content of the array is better done (here, it is even mandatory) in setup(), though, as it is only then that the path to the data folder is known.