Loading all images in a folder

Haven’t used Xojo in a while but have a need, and am feeling dumb: how do I programmatically open all the images in a folder, eg making sure I only load images (and not for example invisible non-image files)? All the examples seem to have the user select an image …

On macOS ?
define a bunch of file types for the images youre interested in
then interate through the dir of interest and check folderitem.type is one of the types youre interested in

see FolderItem.Type - Xojo Documentation

Thanks. That what I ended up doing.