/// <summary> /// Returns a list of files in a give directory. /// </summary> /// <param name="fullName">The full path name to the directory.</param> /// <param name="indexFileNameFilter"></param> /// <returns>An array containing the files.</returns> public static System.String[] GetLuceneIndexFiles(System.String fullName, Lucene.Net.Index.IndexFileNameFilter indexFileNameFilter) { System.IO.DirectoryInfo dInfo = new System.IO.DirectoryInfo(fullName); List<string> list = new List<string>(); foreach (System.IO.FileInfo fInfo in dInfo.GetFiles()) { if (indexFileNameFilter.Accept(fInfo, fInfo.Name) == true) { list.Add(fInfo.Name); } } return list.ToArray(); }