| Server IP : 178.105.222.151 / Your IP : 216.73.216.38 Web Server : nginx/1.28.3 System : Linux MNK 7.0.0-15-generic #15-Ubuntu SMP PREEMPT_DYNAMIC Wed Apr 22 16:06:43 UTC 2026 x86_64 User : www-data ( 33) PHP Version : 8.5.4 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3.14/__pycache__/ |
Upload File : |
+
��3j�� � � � R t ^ RIt^ RIt^ RIHt . ROt^t^tRt ! R R
]4 t ! R R] 4 t
! R R] 4 t ! R
R] 4 t ! R R] 4 t
] ]]3tRtRt ! R R4 t ^ RIt]P* t ! R R]4 t]P1 R4 ] ]]]P2 3tRsR tRsR tR tR t R t!RR lt"R t#]$R8X d
]#! 4 R# R# ] d Rt L8i ; i)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
N)�_GLOBAL_DEFAULT_TIMEOUT�FTP�error_reply�
error_temp�
error_perm�error_proto� c � � ] tR t^9tRtR# )�Error� N��__name__�
__module__�__qualname__�__firstlineno__�__static_attributes__r � �/usr/lib/python3.14/ftplib.pyr
r
9 s � �r r
c � � ] tR t^:tRtR# )r r Nr r r r r r : � � �$r c � � ] tR t^;tRtR# )r r Nr r r r r r ; � � �r c � � ] tR t^<tRtR# )r r Nr r r r r r <