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 Open(File, LockFactory)")] public static FSDirectory GetDirectory( string path, LockFactory lockFactory ) |
| Visual Basic |
|---|
<ObsoleteAttribute("Use Open(File, LockFactory)")> _ Public Shared Function GetDirectory ( _ path As String, _ lockFactory As LockFactory _ ) As FSDirectory |
| Visual C++ |
|---|
[ObsoleteAttribute(L"Use Open(File, LockFactory)")] public: static FSDirectory^ GetDirectory( String^ path, LockFactory^ lockFactory ) |
Parameters
- path
- Type: System..::..String
the path to the directory.
- lockFactory
- Type: Lucene.Net.Store..::..LockFactory
instance of {@link LockFactory} providing the locking implementation.