  ftp Library Package 2.1 for Tcl/Tk Manual Pages

  COMMAND
    ftp::Append handle (local | -data "data") ?remote?
    The ftp::Append command appends a local file local to an existing remote file remote on the ftp server. If the file not exists at the server site, the file shall be created at the server site. If '-data "data"' is specified, then rather than transferring a file, the data passed in is used as the data to transfer.
    The file parameters passed must contain a fully qualified path name, otherwise the command uses the current directory. If remote file name is unspecified, the local file name is assigned to the remote file name.

    If the file was successfully transferred, then the command returns 1, if it fails 0.

  EXAMPLE

        # store data
        ftp::Put $conn data.log

        # append new data
        ftp::Append $conn logfile data.log

[Contents] [Previous: ftp::Put] [Next: ftp::Get]

© 1999 Steffen Traeger