FTPConnection

Seriously changed Since: 0.99.8 Documentation pending

class FTPConnection : Telnet {}

Constructors

this
this()
Undocumented in source.
this
this(const(char)[] hostname, const(char)[] username, const(char)[] password, uint port)
Undocumented in source.
this
this(FtpAddress fad)

Added Since: 0.99.8

Members

Functions

allocate
void allocate(long bytes)

Allocate space for a file.

append
void append(const(char)[] path, InputStream stream, FtpProgress progress, FtpFormat format)

Append data to a file on the server.

cd
void cd(const(char)[] dir)
Undocumented in source.
cdup
void cdup()
Undocumented in source. Be warned that the author may not have intended to support it.
chmod
void chmod(const(char)[] path, int mode)
Undocumented in source.
close
void close()
Undocumented in source. Be warned that the author may not have intended to support it.
connect
void connect(FtpAddress fad)

Added Since: 0.99.8

connect
void connect(const(char)[] hostname, const(char)[] username, const(char)[] password, uint port)

Changed Since: 0.99.8

connectPassive
Socket connectPassive()

Send a PASV and initiate a connection.

connectPassive
Socket connectPassive()
Undocumented in source. Be warned that the author may not have intended to support it.
cwd
const(char)[] cwd()
Undocumented in source. Be warned that the author may not have intended to support it.
del
void del(const(char)[] path)
Undocumented in source.
enableUTF8
void enableUTF8()

Enable UTF8 on servers that don't use this as default. Might need some work

exception
void exception(string message)

Changed Since: 0.99.8

exception
void exception(FtpResponse fr)

Changed Since: 0.99.8

exist
int exist(const(char)[] file)

Added Since: 0.99.8

finishDataCommand
void finishDataCommand(Socket data)

Changed Since: 0.99.8

get
void get(const(char)[] path, const(char)[] local_file, FtpProgress progress, FtpFormat format)

Retrieve a remote file's contents into a local file.

get
void get(const(char)[] path, OutputStream stream, FtpProgress progress, FtpFormat format)

Retrieve a remote file's contents into a local file.

getDataSocket
Socket getDataSocket()

Get a data socket from the server.

getFeatures
void getFeatures()
Undocumented in source. Be warned that the author may not have intended to support it.
getFileInfo
FtpFileInfo getFileInfo(const(char)[] path)
Undocumented in source.
input
InputStream input(const(char)[] path)

Added Since: 0.99.8

isSupported
bool isSupported(const(char)[] command)
Undocumented in source.
is_supported
bool is_supported(const(char)[] command)
Undocumented in source. Be warned that the author may not have intended to support it.
ls
FtpFileInfo[] ls(const(char)[] path)
Undocumented in source.
mkdir
const(char)[] mkdir(const(char)[] path)
Undocumented in source.
modified
Time modified(const(char)[] file)

Added Since: 0.99.8

noop
void noop()
Undocumented in source. Be warned that the author may not have intended to support it.
output
OutputStream output(const(char)[] path)

Added Since: 0.99.8

parse257
const(char)[] parse257(FtpResponse response)
Undocumented in source. Be warned that the author may not have intended to support it.
parseListLine
FtpFileInfo parseListLine(const(char)[] line)
Undocumented in source. Be warned that the author may not have intended to support it.
parseMlstLine
FtpFileInfo parseMlstLine(const(char)[] line)
Undocumented in source. Be warned that the author may not have intended to support it.
parseTimeval
Time parseTimeval(const(char)[] timeval)
Undocumented in source. Be warned that the author may not have intended to support it.
prepareDataSocket
void prepareDataSocket(Socket data)

Prepare a data socket for use.

processDataCommand
Socket processDataCommand(const(char)[] command, const(char)[][] parameters)

Changed Since: 0.99.8

put
void put(const(char)[] path, const(char)[] local_file, FtpProgress progress, FtpFormat format)
Undocumented in source.
put
void put(const(char)[] path, InputStream stream, FtpProgress progress, FtpFormat format)

Store data from a stream on the server.

readResponse
FtpResponse readResponse(const(char)[] expected_code)
Undocumented in source. Be warned that the author may not have intended to support it.
readResponse
FtpResponse readResponse()
Undocumented in source. Be warned that the author may not have intended to support it.
readStream
void readStream(Socket data, OutputStream stream, FtpProgress progress)

Changed Since: 0.99.8

rename
void rename(const(char)[] old_path, const(char)[] new_path)
Undocumented in source.
restartSeek
void restartSeek(size_t offset)

Seek to a byte offset for the next transfer.

rm
void rm(const(char)[] path)
Undocumented in source.
sendCommand
void sendCommand(const(char)[] command, const(char)[][] parameters)
Undocumented in source. Be warned that the author may not have intended to support it.
sendListCommand
FtpFileInfo[] sendListCommand(const(char)[] path)
Undocumented in source. Be warned that the author may not have intended to support it.
sendStream
void sendStream(Socket data, InputStream stream, FtpProgress progress)

Changed Since: 0.99.8

setActive
void setActive(const(char)[] ip, ushort port, const(char)[] listen_ip, ushort listen_port)
Undocumented in source.
setPassive
void setPassive()
Undocumented in source. Be warned that the author may not have intended to support it.
shutdownTime
TimeSpan shutdownTime()

Added Since: 0.99.8

size
size_t size(const(char)[] path, FtpFormat format)
Undocumented in source.
supportedFeatures
FtpFeature[] supportedFeatures()

Added Since: 0.99.8

type
void type(FtpFormat format)
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

timeout
TimeSpan timeout [@property getter]

Added Since: 0.99.8

timeout
TimeSpan timeout [@property setter]

Added Since: 0.99.8

Variables

currFile_
const(char)[] currFile_;
Undocumented in source.
dataSocket_
Socket dataSocket_;
Undocumented in source.
inf_
FtpConnectionDetail inf_;
Undocumented in source.
restartPos_
size_t restartPos_;
Undocumented in source.
supportedFeatures_
FtpFeature[] supportedFeatures_;
Undocumented in source.
timeout_
TimeSpan timeout_;
Undocumented in source.

Inherited Members

From Telnet

socket_
Socket socket_;

The Socket that is used to send commands.

iterator
Lines!(char) iterator;
Undocumented in source.
exception
void exception(string message)
Undocumented in source.
sendline
void sendline(const(void)[] buf)

Send a line over the Socket Conduit.

sendData
void sendData(const(void)[] buf)

Send a line over the Socket Conduit.

readLine
const(char)[] readLine()

Read a CRLF terminated line from the socket.

findAvailableServer
Socket findAvailableServer(const(char)[] hostname, int port)

Find a server which is listening on the specified port.

Meta