-
ftp Library Package 2.1 for Tcl/Tk Manual Pages
- COMMAND
- ftp::Reget handle remote ?local?
-
-
The ftp::Reget command has the same behavior as ftp::Get, except
that if local file local exists and is smaller than remote
file remote, the local file is presumed to be a partially
transferred copy of the 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
-
# retrieve a large file name (12 MByte)
ftp::Get $conn foo.tar
.... after 1 hour and 11.9 transfered MBytes the connection is broken :-(
# restart file transfer at the broken position and
# retrieve only the remaining 0.1 MByte
ftp::Reget $conn foo.tar
[Contents]
[Previous: ftp::Reget]
[Next: ftp::MkDir]
© 1999 Steffen Traeger