lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r788091 - /incubator/lucene.net/trunk/C#/src/Lucene.Net/Store/FSDirectory.cs
Date Wed, 24 Jun 2009 17:24:26 GMT
Author: digy
Date: Wed Jun 24 17:24:26 2009
New Revision: 788091

URL: http://svn.apache.org/viewvc?rev=788091&view=rev
Log:
LUCENENET-169 Changes to make Lucene.NET compatible with ASP.NET Medium Trust Level, in hosting
environments (like GoDaddy...)

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=788091&r1=788090&r2=788091&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 Jun 24 17:24:26
2009
@@ -383,13 +383,7 @@
 		/// <summary>Returns an array of strings, one for each Lucene index file in the directory.
</summary>
 		public override System.String[] List()
 		{
-            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