using UnityEditor;
using System.Collections;
using System.IO;
public class BuildUtil
{
public static ArrayList GetAllFiles(string path)
{
ArrayList fl = null;
string[] fs = Directory.GetFiles(path);
string[] ds = Directory.GetDirectories(path);
if(fs.Length > 0)
{
fl = new ArrayList();
fl.AddRange(fs);
}
for(int i = 0; i < ds.Length; ++i)
{
var childFs = GetAllFiles(ds[i]);
if(null != childFs) fl.AddRange(childFs);
}
return fl;
}
}