summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2009-11-27 13:18:34 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2009-11-27 13:18:34 (GMT)
commitacbe3bdbab14da04c9be5278d1b6f0df8cff2729 (patch)
treedadcb5e6171251c2b1095ac995b1239f5daca7f8 /Doc
parent2600a33219374c97c9f82ab03a2c8848a0bf63eb (diff)
downloadcpython-acbe3bdbab14da04c9be5278d1b6f0df8cff2729.zip
cpython-acbe3bdbab14da04c9be5278d1b6f0df8cff2729.tar.gz
cpython-acbe3bdbab14da04c9be5278d1b6f0df8cff2729.tar.bz2
Issue #6845: Add restart support for binary upload in ftplib. The
`storbinary()` method of FTP and FTP_TLS objects gains an optional `rest` argument. Patch by Pablo Mouzo. (note: the patch also adds a test for the rest argument in retrbinary())
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/ftplib.rst7
1 files changed, 5 insertions, 2 deletions
diff --git a/Doc/library/ftplib.rst b/Doc/library/ftplib.rst
index f54c7fc..32fd6e8 100644
--- a/Doc/library/ftplib.rst
+++ b/Doc/library/ftplib.rst
@@ -233,14 +233,15 @@ followed by ``lines`` for the text version or ``binary`` for the binary version.
it is on by default.)
-.. method:: FTP.storbinary(command, file[, blocksize, callback])
+.. method:: FTP.storbinary(command, file[, blocksize, callback, rest])
Store a file in binary transfer mode. *command* should be an appropriate
``STOR`` command: ``"STOR filename"``. *file* is an open file object which is
read until EOF using its :meth:`read` method in blocks of size *blocksize* to
provide the data to be stored. The *blocksize* argument defaults to 8192.
*callback* is an optional single parameter callable that is called
- on each block of data after it is sent.
+ on each block of data after it is sent. *rest* means the same thing as in
+ the :meth:`transfercmd` method.
.. versionchanged:: 2.1
default for *blocksize* added.
@@ -248,6 +249,8 @@ followed by ``lines`` for the text version or ``binary`` for the binary version.
.. versionchanged:: 2.6
*callback* parameter added.
+ .. versionchanged:: 2.7
+ *rest* parameter added.
.. method:: FTP.storlines(command, file[, callback])