Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
d006380f
Kaydet (Commit)
d006380f
authored
Ock 26, 2008
tarafından
Gregory P. Smith
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Update docs for new callpack params added in r60188
üst
a2af2126
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
8 deletions
+18
-8
ftplib.rst
Doc/library/ftplib.rst
+18
-8
No files found.
Doc/library/ftplib.rst
Dosyayı görüntüle @
d006380f
...
...
@@ -182,11 +182,12 @@ followed by ``lines`` for the text version or ``binary`` for the binary version.
.. method:: FTP.retrlines(command[, callback])
Retrieve a file or directory listing in ASCII transfer mode. *command* should be
an appropriate ``RETR`` command (see :meth:`retrbinary`) or a ``LIST`` command
(usually just the string ``'LIST'``). The *callback* function is called for
each line, with the trailing CRLF stripped. The default *callback* prints the
line to ``sys.stdout``.
Retrieve a file or directory listing in ASCII transfer mode. *command*
should be an appropriate ``RETR`` command (see :meth:`retrbinary`) or a
command such as ``LIST``, ``NLST`` or ``MLSD`` (usually just the string
``'LIST'``). The *callback* function is called for each line, with the
trailing CRLF stripped. The default *callback* prints the line to
``sys.stdout``.
.. method:: FTP.set_pasv(boolean)
...
...
@@ -196,23 +197,32 @@ followed by ``lines`` for the text version or ``binary`` for the binary version.
it is on by default.)
.. method:: FTP.storbinary(command, file[, blocksize])
.. method:: FTP.storbinary(command, file[, blocksize
, callback
])
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.
.. versionchanged:: 2.1
default for *blocksize* added.
.. versionchanged:: 2.6
*callback* parameter added.
.. method:: FTP.storlines(command, file)
.. method:: FTP.storlines(command, file
[, callback]
)
Store a file in ASCII transfer mode. *command* should be an appropriate
``STOR`` command (see :meth:`storbinary`). Lines are read until EOF from the
open file object *file* using its :meth:`readline` method to provide the data to
be stored.
be stored. *callback* is an optional single parameter callable
that is called on each line after it is sent.
.. versionchanged:: 2.6
*callback* parameter added.
.. method:: FTP.transfercmd(cmd[, rest])
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment