Returns the directory instance for the named location.

Namespace: Lucene.Net.Store
Assembly: Lucene.Net (in Lucene.Net.dll) Version: 2.9.4.1

Syntax

C#
[ObsoleteAttribute("Use the constructor that takes a DirectoryInfo, this will be removed in the 3.0 release")]
public static FSDirectory GetDirectory(
	FileInfo file,
	LockFactory lockFactory
)
Visual Basic
<ObsoleteAttribute("Use the constructor that takes a DirectoryInfo, this will be removed in the 3.0 release")> _
Public Shared Function GetDirectory ( _
	file As FileInfo, _
	lockFactory As LockFactory _
) As FSDirectory
Visual C++
[ObsoleteAttribute(L"Use the constructor that takes a DirectoryInfo, this will be removed in the 3.0 release")]
public:
static FSDirectory^ GetDirectory(
	FileInfo^ file, 
	LockFactory^ lockFactory
)

Parameters

file
Type: System.IO..::..FileInfo
the path to the directory.
lockFactory
Type: Lucene.Net.Store..::..LockFactory
instance of {@link LockFactory} providing the locking implementation.

Return Value

the FSDirectory for the named file.

See Also