Array From Unity

Hi there i am busy trying to get all files from my unity folders (Models, sounds etc) and store them in an array but i just cant get it to happen at all. The main reason i want to do this, Is i am busy creating a set of tools for our designers but just cant figure this out

I did have objects as a list but that did not work either so right now it is just an array of type Object;

void OnGUI()
    {
        if(GUILayout.Button("Refresh list"))
        {
            string newFolderPath = AssetDatabase.GUIDToAssetPath("Assets");
            objects = AssetDatabase.LoadAllAssetsAtPath(newFolderPath);
            SearchModels();
        }
        
    }

    void SearchModels()
    {
        Debug.Log("In Search Models now ");
        for (int i = 0; i < objects.Length; i++)
        {
            foreach (GameObject go in objects)
            {
                Debug.Log("We have 1" + go.name);
            }
        }

        
    }

Here you go… this can easily be changed to scan only certain folders or return only certain types of objects.

using System.Collections.Generic;
using System.IO;
using UnityEditor;

[...]

    List<string> pFilePathsList = new List<string>();
    pFilePathsList.AddRange(Directory.GetFiles(Application.dataPath, "*.*", SearchOption.AllDirectories));
    foreach (string s in pFilePathsList)
    {
        // get rid of leading "Assets/"
        string sPath = s.Substring(Application.dataPath.Length - 6);

        Object o = (Object)AssetDatabase.LoadAssetAtPath(sPath, typeof(Object));
        if(o != null)
            Debug.Log("found " + o.name);

    }