Class ListCommandHandler
Implements the LIST
and NLST
commands.
Inherited Members
Namespace: FubarDev.FtpServer.CommandHandlers
Assembly: FubarDev.FtpServer.Commands.dll
Syntax
[FtpCommandHandler("LIST", false, true)]
[FtpCommandHandler("NLST", false, true)]
[FtpCommandHandler("LS", false, true)]
public class ListCommandHandler : FtpCommandHandler, IFtpCommandHandler, IFtpCommandBase, IFeatureHost
Constructors
| Improve this Doc View SourceListCommandHandler(Nullable<ILogger<ListCommandHandler>>)
Initializes a new instance of the ListCommandHandler class.
Declaration
public ListCommandHandler(ILogger<ListCommandHandler>? logger = default(ILogger<ListCommandHandler>? ))
Parameters
Type | Name | Description |
---|---|---|
Nullable<ILogger<ListCommandHandler>> | logger | The logger. |
Methods
| Improve this Doc View SourceProcess(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>> |