コード例 #1
0
        public static string[] GetFilesRecursive(string path, string wildcard)
        {
            List <string> list = new List <string>();

            SCLDirectory.GetFilesRecursive(path, new Wildcard(wildcard), list);
            return(list.ToArray());
        }
コード例 #2
0
 private static void GetFilesRecursive(string path, Wildcard wildcard, List <string> files)
 {
     string[] array = Directory.GetFiles(path);
     for (int i = 0; i < array.Length; i++)
     {
         string text = array[i];
         if (wildcard.IsMatch(text))
         {
             files.Add(Path.Combine(path, text));
         }
     }
     array = Directory.GetDirectories(path);
     for (int i = 0; i < array.Length; i++)
     {
         SCLDirectory.GetFilesRecursive(array[i], wildcard, files);
     }
 }
コード例 #3
0
 public static string[] GetFilesRecursive(string path)
 {
     return(SCLDirectory.GetFilesRecursive(path, "*"));
 }