How to add prefabs from a file location into a GameObject aray.

using java script, I was thinking a for loop just don’t know how to make it search one file location.

Loading objects from Folder in Resources:

GameObject instance=Instantiate(Resources.Load("FolderName/PrefabName",typeof(GameObject)));