Networking and Internet Modules
ftplib
FTP client interfaces for file transfers and remote directory operations. FTP_TLS supports TLS, but data-channel protection must also be enabled when appropriate. Plain FTP does not protect credentials or transferred data. The example constructs an unconnected client.
Formal Syntax & Structure
python syntaxpython
import ftplibReturn Value
module
Module namespace available through import; import is a statement, not a value-returning expression.
Working Example
Example Snippetpython
from ftplib import FTPclient = FTP(timeout=3)print(client.sock is None)