FTP Library Package 1.2 for Tcl/Tk Manual Pages

FTP::Rename  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.

# rename file
FTP::Rename index.htm index.htm.org

# with fully qualified path name
FTP::Rename /usr/htdocs/index.htm /usr/htdocs/index.htm.org

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

© 1999 Steffen Traeger