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
59676677
Kaydet (Commit)
59676677
authored
Mar 18, 1999
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Documented FTP.set_pasv().
üst
f3963b12
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
13 deletions
+15
-13
libftplib.tex
Doc/lib/libftplib.tex
+15
-13
No files found.
Doc/lib/libftplib.tex
Dosyayı görüntüle @
59676677
\section
{
\module
{
ftplib
}
---
FTP protocol client.
}
\declaremodule
{
standard
}{
ftplib
}
FTP protocol client
}
\declaremodule
{
standard
}{
ftplib
}
\modulesynopsis
{
FTP protocol client (requires sockets).
}
\indexii
{
FTP
}{
protocol
}
This module defines the class
\class
{
FTP
}
and a few related items.
The
\class
{
FTP
}
class implements the client side of the FTP
protocol.
You can use this to write Python programs that perform a variety of
automated FTP jobs, such as mirroring other ftp servers. It is also
used by the module
\module
{
urllib
}
to handle URLs that use FTP. For
more information on FTP (File Transfer Protocol), see Internet
\rfc
{
959
}
.
The
\class
{
FTP
}
class implements the client side of the FTP
protocol.
\indexii
{
FTP
}{
protocol
}
You can use this to write Python
programs that perform a variety of automated FTP jobs, such as
mirroring other ftp servers. It is also used by the module
\refmodule
{
urllib
}
to handle URLs that use FTP. For more information
on FTP (File Transfer Protocol), see Internet
\rfc
{
959
}
.
Here's a sample session using the
\module
{
ftplib
}
module:
...
...
@@ -71,8 +69,7 @@ not begin with a digit in the range 1--5.
\end{excdesc}
\subsection
{
FTP Objects
}
\label
{
ftp-objects
}
\subsection
{
FTP Objects
\label
{
ftp-objects
}}
\class
{
FTP
}
instances have the following methods:
...
...
@@ -104,7 +101,7 @@ information that may be relevant to the user.)
Log in as the given
\var
{
user
}
. The
\var
{
passwd
}
and
\var
{
acct
}
parameters are optional and default to the empty string. If no
\var
{
user
}
is specified, it defaults to
\code
{
'anonymous'
}
. If
\var
{
user
}
is
\code
{
anonymous
}
, the default
\var
{
passwd
}
is
\var
{
user
}
is
\code
{
'anonymous'
}
, the default
\var
{
passwd
}
is
\samp
{
\var
{
realuser
}
@
\var
{
host
}}
where
\var
{
realuser
}
is the real user
name (glanced from the
\envvar
{
LOGNAME
}
or
\envvar
{
USER
}
environment
variable) and
\var
{
host
}
is the hostname as returned by
...
...
@@ -151,6 +148,11 @@ with the trailing CRLF stripped. The default \var{callback} prints
the line to
\code
{
sys.stdout
}
.
\end{methoddesc}
\begin{methoddesc}
{
set
_
pasv
}{
boolean
}
Enable ``passive'' mode if
\var
{
boolean
}
is true, other disable
passive mode.
\end{methoddesc}
\begin{methoddesc}
{
storbinary
}{
command, file, blocksize
}
Store a file in binary transfer mode.
\var
{
command
}
should be an
appropriate
\samp
{
STOR
}
command, i.e.
\ \code
{
"STOR
\var
{
filename
}
"
}
.
...
...
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