Skip to content

Instantly share code, notes, and snippets.

@Fabian1337
Fabian1337 / ftplib.py
Created January 14, 2020 08:54
ftplib.py python 3.5.2 with bugfix if host is empty
"""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.'