lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r801326 - /incubator/lucene.net/trunk/C#/src/Lucene.Net/Store/FSDirectory.cs
Date Wed, 05 Aug 2009 17:27:55 GMT
Author: digy
Date: Wed Aug  5 17:27:54 2009
New Revision: 801326

URL: http://svn.apache.org/viewvc?rev=801326&view=rev
Log:
LUCENENET-169 for Lucene.Net 2.4.0

Modified:
    incubator/lucene.net/trunk/C#/src/Lucene.Net/Store/FSDirectory.cs

Modified: incubator/lucene.net/trunk/C#/src/Lucene.Net/Store/FSDirectory.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Lucene.Net/Store/FSDirectory.cs?rev=801326&r1=801325&r2=801326&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Lucene.Net/Store/FSDirectory.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Lucene.Net/Store/FSDirectory.cs Wed Aug  5 17:27:54
2009
@@ -378,13 +378,7 @@
 		public override System.String[] List()
 		{
             EnsureOpen();
-            System.String[] files = SupportClass.FileSupport.GetLuceneIndexFiles(directory.FullName,
IndexFileNameFilter.GetFilter());
-            for (int i = 0; i < files.Length; i++)
-            {
-                System.IO.FileInfo fi = new System.IO.FileInfo(files[i]);
-                files[i] = fi.Name;
-            }
-			return files;
+            return SupportClass.FileSupport.GetLuceneIndexFiles(directory.FullName, IndexFileNameFilter.GetFilter());
 		}
 		
 		/// <summary>Returns true iff a file with the given name exists. </summary>



Mime
View raw message