I want to open a directory and read all the files inside and put them into an `array`, so far I have:

```
$imagesdir = $CFG->dataroot.'/1/themeimages/';

```

Which gives me the path to the directory, whats the next step?