FTP.addCommand

Add a command to send to ftp server.

There is no remove command functionality. Do a clearCommands and set the needed commands instead.

struct FTP
void
addCommand
(
const(char)[] command
)

Examples

import std.net.curl;
auto client = FTP();
client.addCommand("RNFR my_file.txt");
client.addCommand("RNTO my_renamed_file.txt");
upload("my_file.txt", "ftp.digitalmars.com", client);

Meta