Constructor NIOFSDirectory
NIOFSDirectory(DirectoryInfo, LockFactory)
Create a new NIOFSDirectory for the named location.
Declaration
public NIOFSDirectory(DirectoryInfo path, LockFactory lockFactory)
Parameters
Type | Name | Description |
---|---|---|
DirectoryInfo | path | the path of the directory |
LockFactory | lockFactory | the lock factory to use, or null for the default (NativeFSLockFactory); |
NIOFSDirectory(DirectoryInfo)
Create a new NIOFSDirectory for the named location and NativeFSLockFactory.
Declaration
public NIOFSDirectory(DirectoryInfo path)
Parameters
Type | Name | Description |
---|---|---|
DirectoryInfo | path | the path of the directory |
NIOFSDirectory(String, LockFactory)
Create a new NIOFSDirectory for the named location.
LUCENENET specific overload for convenience using string instead of
Declaration
public NIOFSDirectory(string path, LockFactory lockFactory)
Parameters
Type | Name | Description |
---|---|---|
System.String | path | the path of the directory |
LockFactory | lockFactory | the lock factory to use, or null for the default (NativeFSLockFactory); |
NIOFSDirectory(String)
Create a new NIOFSDirectory for the named location and NativeFSLockFactory.
LUCENENET specific overload for convenience using string instead of
Declaration
public NIOFSDirectory(string path)
Parameters
Type | Name | Description |
---|---|---|
System.String | path | the path of the directory |