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 Open(File)")]
public static FSDirectory GetDirectory(
	DirectoryInfo file
)
Visual Basic
<ObsoleteAttribute("Use Open(File)")> _
Public Shared Function GetDirectory ( _
	file As DirectoryInfo _
) As FSDirectory
Visual C++
[ObsoleteAttribute(L"Use Open(File)")]
public:
static FSDirectory^ GetDirectory(
	DirectoryInfo^ file
)

Parameters

file
Type: System.IO..::..DirectoryInfo
the path to the directory.

Return Value

the FSDirectory for the named file.

See Also