  ftp Library Package 2.1 for Tcl/Tk Manual Pages

  COMMAND
    ftp::Rename handle from to
    The ftp::Rename command renames the file in the current directory of the ftp server with the specified file name from to the specified new file name to. This new file name cannot be the same as any existing subdirectory or file name.

    The command returns 1 if the specified file can be successfully renamed or 0 if it fails.

  EXAMPLE

        # rename file
        ftp::Rename $conn index.htm index.htm.org

        # with fully qualified path name
        ftp::Rename $conn /usr/htdocs/index.htm /usr/htdocs/index.htm.org

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

© 1999 Steffen Traeger