FTP Library Package 1.2 for Tcl/Tk Manual Pages

COMMAND
FTP::Put  local  ?remote?
 
The FTP::Put command stores a local file local to a remote file remote on the ftp server. 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 unique file name
FTP::Put index.htm

# store different file names
FTP::Put test.htm index.htm

# with different fully qualified path name
FTP::Put /usr/local/src/my.tar.gz /incoming/foo.tar.gz
	

[Contents]  [Previous: FTP::Rename]  [Next: FTP::Append]


© 1999 Steffen Traeger