FTPConnection.get

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

Calling this function will change the current data transfer format.

  1. void get(const(char)[] path, const(char)[] local_file, FtpProgress progress, FtpFormat format)
  2. void get(const(char)[] path, OutputStream stream, FtpProgress progress, FtpFormat format)
    class FTPConnection
    void
    get
    (
    const(char)[] path
    ,
    OutputStream stream
    ,,)

Parameters

path const(char)[]

the path to the remote file

stream OutputStream

stream to write the data to

progress FtpProgress

a delegate to call with progress information

format FtpFormat

what format to read the data in

Meta