Loop trough folder for Sprites

So is there an easy way to for loop trough a folder and put them all in an Array?