Class MlstCommandHandler
The implementation of the MLST
and MLSD
commands.
Inherited Members
Namespace: FubarDev.FtpServer.CommandHandlers
Assembly: FubarDev.FtpServer.Commands.dll
Syntax
[FtpCommandHandler("MLST", false, true)]
[FtpCommandHandler("MLSD", false, true)]
[FtpFeatureFunction("FeatureStatus")]
public class MlstCommandHandler : FtpCommandHandler, IFtpCommandHandler, IFtpCommandBase, IFeatureHost
Constructors
| Improve this Doc View SourceMlstCommandHandler(Nullable<ILogger<MlstCommandHandler>>)
Initializes a new instance of the MlstCommandHandler class.
Declaration
public MlstCommandHandler(ILogger<MlstCommandHandler>? logger = default(ILogger<MlstCommandHandler>? ))
Parameters
Type | Name | Description |
---|---|---|
Nullable<ILogger<MlstCommandHandler>> | logger | The logger. |
Methods
| Improve this Doc View SourceFeatureStatus(IFtpConnection)
Gets the feature string for the MFF
command.
Declaration
public static string FeatureStatus(IFtpConnection connection)
Parameters
Type | Name | Description |
---|---|---|
IFtpConnection | connection | The connection. |
Returns
Type | Description |
---|---|
String | The feature string. |
Process(FtpCommand, CancellationToken)
Declaration
public override Task<IFtpResponse? > Process(FtpCommand command, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
FtpCommand | command | |
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task<Nullable<IFtpResponse>> |