Lucene.Net.Index.TestSnapshotDeletionPolicy.CheckSnapshotExists C# (CSharp) Method

CheckSnapshotExists() protected method

protected CheckSnapshotExists ( Directory dir, IndexCommit c ) : void
dir Directory
c IndexCommit
return void
        protected internal virtual void CheckSnapshotExists(Directory dir, IndexCommit c)
        {
            string segFileName = c.SegmentsFileName;
            Assert.IsTrue(SlowFileExists(dir, segFileName), "segments file not found in directory: " + segFileName);
        }