Create a new SimpleFSDirectory 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 SimpleFSDirectory(
	FileInfo path,
	LockFactory lockFactory
)
Visual Basic
<ObsoleteAttribute("Use the constructor that takes a DirectoryInfo, this will be removed in the 3.0 release")> _
Public Sub New ( _
	path As FileInfo, _
	lockFactory As LockFactory _
)
Visual C++
[ObsoleteAttribute(L"Use the constructor that takes a DirectoryInfo, this will be removed in the 3.0 release")]
public:
SimpleFSDirectory(
	FileInfo^ path, 
	LockFactory^ lockFactory
)

Parameters

path
Type: System.IO..::..FileInfo
the path of the directory
lockFactory
Type: Lucene.Net.Store..::..LockFactory
the lock factory to use, or null for the default.

See Also