lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r801316 - /incubator/lucene.net/trunk/C#/src/Lucene.Net/Index/SegmentInfos.cs
Date Wed, 05 Aug 2009 17:21:08 GMT
Author: digy
Date: Wed Aug  5 17:21:08 2009
New Revision: 801316

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

Modified:
    incubator/lucene.net/trunk/C#/src/Lucene.Net/Index/SegmentInfos.cs

Modified: incubator/lucene.net/trunk/C#/src/Lucene.Net/Index/SegmentInfos.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Lucene.Net/Index/SegmentInfos.cs?rev=801316&r1=801315&r2=801316&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Lucene.Net/Index/SegmentInfos.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Lucene.Net/Index/SegmentInfos.cs Wed Aug  5 17:21:08
2009
@@ -805,10 +805,10 @@
 							else
 							{
 								bool tmpBool;
-								if (System.IO.File.Exists(new System.IO.FileInfo(fileDirectory.FullName + "\\" +
prevSegmentFileName).FullName))
+                                if (System.IO.File.Exists(new System.IO.FileInfo(System.IO.Path.Combine(fileDirectory.FullName,prevSegmentFileName)).FullName))
 									tmpBool = true;
 								else
-									tmpBool = System.IO.Directory.Exists(new System.IO.FileInfo(fileDirectory.FullName
+ "\\" + prevSegmentFileName).FullName);
+                                    tmpBool = System.IO.Directory.Exists(new System.IO.FileInfo(System.IO.Path.Combine(fileDirectory.FullName,prevSegmentFileName)).FullName);
 								prevExists = tmpBool;
 							}
 							



Mime
View raw message