Lucene.Net.Store.RAMDirectory.FileExists C# (CSharp) Method

FileExists() public method

Returns true iff the named file exists in this directory.
public FileExists ( System name ) : bool
name System
return bool
		public override bool FileExists(System.String name)
		{
			EnsureOpen();
			RAMFile file;
			lock (this)
			{
				file = fileMap[name];
			}
			return file != null;
		}
		

Usage Example

Esempio n. 1
0
 public override bool FileExists(string name)
 {
     lock (this)
     {
         return(cache.FileExists(name) || @delegate.FileExists(name));
     }
 }
All Usage Examples Of Lucene.Net.Store.RAMDirectory::FileExists