Returns the directory instance for the named location.
Namespace: Lucene.Net.StoreAssembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1
Syntax
C# |
---|
[ObsoleteAttribute("Use IndexWriter's create flag, instead, to create a new index.")] public static FSDirectory GetDirectory( string path, bool create ) |
Visual Basic |
---|
<ObsoleteAttribute("Use IndexWriter's create flag, instead, to create a new index.")> _ Public Shared Function GetDirectory ( _ path As String, _ create As Boolean _ ) As FSDirectory |
Visual C++ |
---|
[ObsoleteAttribute(L"Use IndexWriter's create flag, instead, to create a new index.")] public: static FSDirectory^ GetDirectory( String^ path, bool create ) |
Parameters
- path
- Type: System..::..String
the path to the directory.
- create
- Type: System..::..Boolean
if true, create, or erase any existing contents.