Apache Lucene.Net 2.1 Class Library API

FSDirectory.GetDirectory Method (FileInfo, Boolean)

Returns the directory instance for the named location.

public static FSDirectory GetDirectory(
   FileInfo file,
   bool create
);

Parameters

file
the path to the directory.
create
if true, create, or erase any existing contents.

Return Value

the FSDirectory for the named file.

See Also

FSDirectory Class | Lucene.Net.Store Namespace | FSDirectory.GetDirectory Overload List