Class AMNetVirtualFileSystemFactory
Maps authenticated users to local virtual filesystem roots.
Inherited Members
Namespace: ApacheMinaSSHD.NET.Wrapper.Factories
Assembly: ApacheMinaSSHD.NET.Wrapper.dll
Syntax
public class AMNetVirtualFileSystemFactory
Constructors
| Edit this page View SourceAMNetVirtualFileSystemFactory(string)
Creates a virtual filesystem factory that creates per-user directories under basePath.
Declaration
public AMNetVirtualFileSystemFactory(string basePath)
Parameters
| Type | Name | Description |
|---|---|---|
| string | basePath | The base directory that contains user home directories. |
AMNetVirtualFileSystemFactory(string, bool)
Creates a virtual filesystem factory.
Declaration
public AMNetVirtualFileSystemFactory(string basePath, bool createUserDirectory)
Parameters
| Type | Name | Description |
|---|---|---|
| string | basePath | The base directory used to resolve user home directories. |
| bool | createUserDirectory | Whether missing user home directories may be created automatically. |
Properties
| Edit this page View SourceBasePath
Gets the base directory used to resolve user home directories.
Declaration
public string BasePath { get; }
Property Value
| Type | Description |
|---|---|
| string |
CreateUserDirectory
Gets whether missing user home directories may be created automatically.
Declaration
public bool CreateUserDirectory { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Methods
| Edit this page View SourceResolveUserHomeDirectory(string)
Resolves the local home directory for an authenticated username.
Declaration
public virtual string ResolveUserHomeDirectory(string username)
Parameters
| Type | Name | Description |
|---|---|---|
| string | username | The authenticated username. |
Returns
| Type | Description |
|---|---|
| string | The local directory path to use as the user's home. |