FTP Library Package 1.1 for Tcl/Tk Manual Pages

COMMAND
FTP::Newer  remote  ?local?
 
The FTP::Reget command has the same behavior as FTP::Get, except that if local file local exists and is smallerthan remote file remote, the local file is presumed to be a partially transferred copy of teh remote file and the transfer is continued from the apparent point of failure. This command is useful when transferring very large files over networks that tend to drop connections.

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

EXAMPLE
# package update
if {[FTP::Newer /pub/tcl/httpd/tclhttpd.tar.gz /usr/local/src/tclhttpd.tgz]} {
	exec echo "New httpd arrived!" | mailx -s ANNOUNCE root
}
	

[Contents]  [Previous: FTP::Reget]  [Next: FTP::MkDir]


© 1999 Steffen Traeger