| Server IP : 121.121.20.254 / Your IP : 216.73.217.51 Web Server : Microsoft-IIS/10.0 System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64 User : IUSR ( 0) PHP Version : 8.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /Python315/Lib/__pycache__/ |
Upload File : |
R
>lqj[� c � � Q s ] PHs] PHs] QHGs , QNs]s]sQs Q Q \2 s Q
Q\ 2 s
Q Q\ 2 s Q Q\ 2 s Q
Q\ 2 s
\ \\1sQsQs Q Q2 s ] PHRs\O* s Q Q\2 s\O1 Q2 \ \\\O2 1sPrQ sPrQ sQ sQ s Q s!QQ ks"Q s#\$Q6X c
\# 2 P! P! \ c Ps K8h 9 h)aS An FTP client class and some helper functions.
Based on RFC 959: File Transfer Protocol (FTP), by J. Postel and J. Reynolds
Example:
>>> from ftplib import FTP
>>> ftp = FTP('ftp.python.org') # connect to host, default port
>>> ftp.login() # default, i.e.: user anonymous, passwd anonymous@
'230 Guest login ok, access restrictions apply.'
>>> ftp.retrlines('LIST') # list directory contents
total 9
drwxr-xr-x 8 root wheel 1024 Jan 3 1994 .
drwxr-xr-x 8 root wheel 1024 Jan 3 1994 ..
drwxr-xr-x 2 root wheel 1024 Jan 3 1994 bin
drwxr-xr-x 2 root wheel 1024 Jan 3 1994 etc
d-wxrwxr-x 2 ftp wheel 1024 Sep 5 13:43 incoming
drwxr-xr-x 2 root wheel 1024 Nov 17 1993 lib
drwxr-xr-x 6 1094 wheel 1024 Sep 13 19:07 pub
drwxr-xr-x 3 root wheel 1024 Jan 3 1994 usr
-rw-r--r-- 1 root root 312 Aug 1 1994 welcome.msg
'226 Transfer complete.'
>>> ftp.quit()
'221 Goodbye.'
>>>
A nice test that reveals some of the network dialogue would be:
python ftplib.py -d localhost -l -p -l
)�_GLOBAL_DEFAULT_TIMEOUT�FTP�error_reply�
error_temp�
error_perm�error_proto� c � � \ sQ s]9sQsP! )�Error� ��__name__�
__module__�__qualname__�__firstlineno__�__static_attributes__r
� �C:\Python315\\Lib\ftplib.pyr r 9 s � �r r c � � \ sQ s]:sQsP! )r r
r r
r r r r : � � �$r c � � \ sQ s];sQsP! )r r
r r
r r r r ; � � �r c � � \ sQ s]<sQsP! )r r
r r
r r r r <