{
    "content": [
        {
            "type": "text",
            "text": "# ftplib (pydoc)\n\n**Summary:** ftplib - An FTP client class and some helper functions.\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **MODULE REFERENCE** (8 lines)\n- **DESCRIPTION** (27 lines)\n- **CLASSES** (9 lines) — 6 subsections\n  - class FTP (270 lines)\n  - class FTP_TLS (305 lines)\n  - class error_perm (68 lines)\n  - class error_proto (68 lines)\n  - class error_reply (68 lines)\n  - class error_temp (68 lines)\n- **DATA** (3 lines)\n- **FILE** (3 lines)\n\n## Full Content\n\n### NAME\n\nftplib - An FTP client class and some helper functions.\n\n### MODULE REFERENCE\n\nhttps://docs.python.org/3.10/library/ftplib.html\n\nThe following documentation is automatically generated from the Python\nsource files.  It may be incomplete, incorrect or include features that\nare considered implementation detail and may vary between Python\nimplementations.  When in doubt, consult the module reference at the\nlocation listed above.\n\n### DESCRIPTION\n\nBased on RFC 959: File Transfer Protocol (FTP), by J. Postel and J. Reynolds\n\nExample:\n\n>>> from ftplib import FTP\n>>> ftp = FTP('ftp.python.org') # connect to host, default port\n>>> ftp.login() # default, i.e.: user anonymous, passwd anonymous@\n'230 Guest login ok, access restrictions apply.'\n>>> ftp.retrlines('LIST') # list directory contents\ntotal 9\ndrwxr-xr-x   8 root     wheel        1024 Jan  3  1994 .\ndrwxr-xr-x   8 root     wheel        1024 Jan  3  1994 ..\ndrwxr-xr-x   2 root     wheel        1024 Jan  3  1994 bin\ndrwxr-xr-x   2 root     wheel        1024 Jan  3  1994 etc\nd-wxrwxr-x   2 ftp      wheel        1024 Sep  5 13:43 incoming\ndrwxr-xr-x   2 root     wheel        1024 Nov 17  1993 lib\ndrwxr-xr-x   6 1094     wheel        1024 Sep 13 19:07 pub\ndrwxr-xr-x   3 root     wheel        1024 Jan  3  1994 usr\n-rw-r--r--   1 root     root          312 Aug  1  1994 welcome.msg\n'226 Transfer complete.'\n>>> ftp.quit()\n'221 Goodbye.'\n>>>\n\nA nice test that reveals some of the network dialogue would be:\npython ftplib.py -d localhost -l -p -l\n\n### CLASSES\n\nbuiltins.object\nFTP\nFTPTLS\nError(builtins.Exception)\nerrorperm\nerrorproto\nerrorreply\nerrortemp\n\n#### class FTP\n\n|  FTP(host='', user='', passwd='', acct='', timeout=<object object at 0x7f60366e8a30>, sourceaddress=None, *, encoding='utf-8')\n|\n|  An FTP client class.\n|\n|  To create a connection, call the class using these arguments:\n|          host, user, passwd, acct, timeout, sourceaddress, encoding\n|\n|  The first four arguments are all strings, and have default value ''.\n|  The parameter ´timeout´ must be numeric and defaults to None if not\n|  passed, meaning that no timeout will be set on any ftp socket(s).\n|  If a timeout is passed, then this is now the default timeout for all ftp\n|  socket operations for this instance.\n|  The last parameter is the encoding of filenames, which defaults to utf-8.\n|\n|  Then use self.connect() with optional host and port argument.\n|\n|  To download a file, use ftp.retrlines('RETR ' + filename),\n|  or ftp.retrbinary() with slightly different arguments.\n|  To upload a file, use ftp.storlines() or ftp.storbinary(),\n|  which have an open file as argument (see their definitions\n|  below for details).\n|  The download/upload functions first issue appropriate TYPE\n|  and PORT or PASV commands.\n|\n|  Methods defined here:\n|\n|  enter(self)\n|\n|  exit(self, *args)\n|      # Context management protocol: try to quit() if active\n|\n|  init(self, host='', user='', passwd='', acct='', timeout=<object object at 0x7f60366e8a30>, sourceaddress=None, *, encoding='utf-8')\n|      Initialization method (called by class instantiation).\n|      Initialize host to localhost, port to standard ftp port.\n|      Optional arguments are host (for connect()),\n|      and user, passwd, acct (for login()).\n|\n|  abort(self)\n|      Abort a file transfer.  Uses out-of-band data.\n|      This does not follow the procedure from the RFC to send Telnet\n|      IP and Synch; that doesn't seem to work with the servers I've\n|      tried.  Instead, just send the ABOR command as OOB data.\n|\n|  acct(self, password)\n|      Send new account name.\n|\n|  close(self)\n|      Close the connection without assuming anything about it.\n|\n|  connect(self, host='', port=0, timeout=-999, sourceaddress=None)\n|      Connect to host.  Arguments are:\n|      - host: hostname to connect to (string, default previous host)\n|      - port: port to connect to (integer, default previous port)\n|      - timeout: the timeout to set against the ftp socket(s)\n|      - sourceaddress: a 2-tuple (host, port) for the socket to bind\n|        to as its source address before connecting.\n|\n|  cwd(self, dirname)\n|      Change to a directory.\n|\n|  debug = setdebuglevel(self, level)\n|\n|  delete(self, filename)\n|      Delete a file.\n|\n|  dir(self, *args)\n|      List a directory in long form.\n|      By default list current directory to stdout.\n|      Optional last argument is callback function; all\n|      non-empty arguments before it are concatenated to the\n|      LIST command.  (This *should* only be used for a pathname.)\n|\n|  getline(self)\n|      # Internal: return one line from the server, stripping CRLF.\n|      # Raise EOFError if the connection is closed\n|\n|  getmultiline(self)\n|      # Internal: get a response from the server, which may possibly\n|      # consist of multiple lines.  Return a single string with no\n|      # trailing CRLF.  If the response consists of multiple lines,\n|      # these are separated by '\\n' characters in the string\n|\n|  getresp(self)\n|      # Internal: get a response from the server.\n|      # Raise various errors if the response indicates an error\n|\n|  getwelcome(self)\n|      Get the welcome message from the server.\n|      (this is read and squirreled away by connect())\n|\n|  login(self, user='', passwd='', acct='')\n|      Login, default anonymous.\n|\n|  makepasv(self)\n|      Internal: Does the PASV or EPSV handshake -> (address, port)\n|\n|  makeport(self)\n|      Create a new socket and send a PORT command for it.\n|\n|  mkd(self, dirname)\n|      Make a directory, return its full pathname.\n|\n|  mlsd(self, path='', facts=[])\n|      List a directory in a standardized format by using MLSD\n|      command (RFC-3659). If path is omitted the current directory\n|      is assumed. \"facts\" is a list of strings representing the type\n|      of information desired (e.g. [\"type\", \"size\", \"perm\"]).\n|\n|      Return a generator object yielding a tuple of two elements\n|      for every file found in path.\n|      First element is the file name, the second one is a dictionary\n|      including a variable number of \"facts\" depending on the server\n|      and whether \"facts\" argument has been provided.\n|\n|  nlst(self, *args)\n|      Return a list of files in a given directory (default the current).\n|\n|  ntransfercmd(self, cmd, rest=None)\n|      Initiate a transfer over the data connection.\n|\n|      If the transfer is active, send a port command and the\n|      transfer command, and accept the connection.  If the server is\n|      passive, send a pasv command, connect to it, and start the\n|      transfer command.  Either way, return the socket for the\n|      connection and the expected size of the transfer.  The\n|      expected size may be None if it could not be determined.\n|\n|      Optional `rest' argument can be a string that is sent as the\n|      argument to a REST command.  This is essentially a server\n|      marker used to tell the server to skip over any data up to the\n|      given marker.\n|\n|  putcmd(self, line)\n|      # Internal: send one command to the server (through putline())\n|\n|  putline(self, line)\n|      # Internal: send one line to the server, appending CRLF\n|\n|  pwd(self)\n|      Return current working directory.\n|\n|  quit(self)\n|      Quit, and close the connection.\n|\n|  rename(self, fromname, toname)\n|      Rename a file.\n|\n|  retrbinary(self, cmd, callback, blocksize=8192, rest=None)\n|      Retrieve data in binary mode.  A new port is created for you.\n|\n|      Args:\n|        cmd: A RETR command.\n|        callback: A single parameter callable to be called on each\n|                  block of data read.\n|        blocksize: The maximum number of bytes to read from the\n|                   socket at one time.  [default: 8192]\n|        rest: Passed to transfercmd().  [default: None]\n|\n|      Returns:\n|        The response code.\n|\n|  retrlines(self, cmd, callback=None)\n|      Retrieve data in line mode.  A new port is created for you.\n|\n|      Args:\n|        cmd: A RETR, LIST, or NLST command.\n|        callback: An optional single parameter callable that is called\n|                  for each line with the trailing CRLF stripped.\n|                  [default: printline()]\n|\n|      Returns:\n|        The response code.\n|\n|  rmd(self, dirname)\n|      Remove a directory.\n|\n|  sanitize(self, s)\n|      # Internal: \"sanitize\" a string for printing\n|\n|  sendcmd(self, cmd)\n|      Send a command and return the response.\n|\n|  sendeprt(self, host, port)\n|      Send an EPRT command with the current host and the given port number.\n|\n|  sendport(self, host, port)\n|      Send a PORT command with the current host and the given\n|      port number.\n|\n|  setdebuglevel(self, level)\n|      Set the debugging level.\n|      The required argument level means:\n|      0: no debugging output (default)\n|      1: print commands and responses but not body text etc.\n|      2: also print raw lines read and sent before stripping CR/LF\n|\n|  setpasv(self, val)\n|      Use passive or active mode for data transfers.\n|      With a false argument, use the normal PORT mode,\n|      With a true argument, use the PASV command.\n|\n|  size(self, filename)\n|      Retrieve the size of a file.\n|\n|  storbinary(self, cmd, fp, blocksize=8192, callback=None, rest=None)\n|      Store a file in binary mode.  A new port is created for you.\n|\n|      Args:\n|        cmd: A STOR command.\n|        fp: A file-like object with a read(numbytes) method.\n|        blocksize: The maximum data size to read from fp and send over\n|                   the connection at once.  [default: 8192]\n|        callback: An optional single parameter callable that is called on\n|                  each block of data after it is sent.  [default: None]\n|        rest: Passed to transfercmd().  [default: None]\n|\n|      Returns:\n|        The response code.\n|\n|  storlines(self, cmd, fp, callback=None)\n|      Store a file in line mode.  A new port is created for you.\n|\n|      Args:\n|        cmd: A STOR command.\n|        fp: A file-like object with a readline() method.\n|        callback: An optional single parameter callable that is called on\n|                  each line after it is sent.  [default: None]\n|\n|      Returns:\n|        The response code.\n|\n|  transfercmd(self, cmd, rest=None)\n|      Like ntransfercmd() but returns only the socket.\n|\n|  voidcmd(self, cmd)\n|      Send a command and expect a response beginning with '2'.\n|\n|  voidresp(self)\n|      Expect a response beginning with '2'.\n|\n|  ----------------------------------------------------------------------\n|  Data descriptors defined here:\n|\n|  dict\n|      dictionary for instance variables (if defined)\n|\n|  weakref\n|      list of weak references to the object (if defined)\n|\n|  ----------------------------------------------------------------------\n|  Data and other attributes defined here:\n|\n|  debugging = 0\n|\n|  file = None\n|\n|  host = ''\n|\n|  maxline = 8192\n|\n|  passiveserver = True\n|\n|  port = 21\n|\n|  sock = None\n|\n|  trustserverpasvipv4address = False\n|\n|  welcome = None\n\n#### class FTP_TLS\n\n|  FTPTLS(host='', user='', passwd='', acct='', keyfile=None, certfile=None, context=None, timeout=<object object at 0x7f60366e8a30>, sourceaddress=None, *, encoding='utf-8')\n|\n|  A FTP subclass which adds TLS support to FTP as described\n|  in RFC-4217.\n|\n|  Connect as usual to port 21 implicitly securing the FTP control\n|  connection before authenticating.\n|\n|  Securing the data connection requires user to explicitly ask\n|  for it by calling protp() method.\n|\n|  Usage example:\n|  >>> from ftplib import FTPTLS\n|  >>> ftps = FTPTLS('ftp.python.org')\n|  >>> ftps.login()  # login anonymously previously securing control channel\n|  '230 Guest login ok, access restrictions apply.'\n|  >>> ftps.protp()  # switch to secure data connection\n|  '200 Protection level set to P'\n|  >>> ftps.retrlines('LIST')  # list directory content securely\n|  total 9\n|  drwxr-xr-x   8 root     wheel        1024 Jan  3  1994 .\n|  drwxr-xr-x   8 root     wheel        1024 Jan  3  1994 ..\n|  drwxr-xr-x   2 root     wheel        1024 Jan  3  1994 bin\n|  drwxr-xr-x   2 root     wheel        1024 Jan  3  1994 etc\n|  d-wxrwxr-x   2 ftp      wheel        1024 Sep  5 13:43 incoming\n|  drwxr-xr-x   2 root     wheel        1024 Nov 17  1993 lib\n|  drwxr-xr-x   6 1094     wheel        1024 Sep 13 19:07 pub\n|  drwxr-xr-x   3 root     wheel        1024 Jan  3  1994 usr\n|  -rw-r--r--   1 root     root          312 Aug  1  1994 welcome.msg\n|  '226 Transfer complete.'\n|  >>> ftps.quit()\n|  '221 Goodbye.'\n|  >>>\n|\n|  Method resolution order:\n|      FTPTLS\n|      FTP\n|      builtins.object\n|\n|  Methods defined here:\n|\n|  init(self, host='', user='', passwd='', acct='', keyfile=None, certfile=None, context=None, timeout=<object object at 0x7f60366e8a30>, sourceaddress=None, *, encoding='utf-8')\n|      Initialization method (called by class instantiation).\n|      Initialize host to localhost, port to standard ftp port.\n|      Optional arguments are host (for connect()),\n|      and user, passwd, acct (for login()).\n|\n|  abort(self)\n|      Abort a file transfer.  Uses out-of-band data.\n|      This does not follow the procedure from the RFC to send Telnet\n|      IP and Synch; that doesn't seem to work with the servers I've\n|      tried.  Instead, just send the ABOR command as OOB data.\n|\n|  auth(self)\n|      Set up secure control connection by using TLS/SSL.\n|\n|  ccc(self)\n|      Switch back to a clear-text control connection.\n|\n|  login(self, user='', passwd='', acct='', secure=True)\n|      Login, default anonymous.\n|\n|  ntransfercmd(self, cmd, rest=None)\n|      Initiate a transfer over the data connection.\n|\n|      If the transfer is active, send a port command and the\n|      transfer command, and accept the connection.  If the server is\n|      passive, send a pasv command, connect to it, and start the\n|      transfer command.  Either way, return the socket for the\n|      connection and the expected size of the transfer.  The\n|      expected size may be None if it could not be determined.\n|\n|      Optional `rest' argument can be a string that is sent as the\n|      argument to a REST command.  This is essentially a server\n|      marker used to tell the server to skip over any data up to the\n|      given marker.\n|\n|  protc(self)\n|      Set up clear text data connection.\n|\n|  protp(self)\n|      Set up secure data connection.\n|\n|  ----------------------------------------------------------------------\n|  Data and other attributes defined here:\n|\n|  sslversion = <SSLMethod.PROTOCOLTLSCLIENT: 16>\n|\n|  ----------------------------------------------------------------------\n|  Methods inherited from FTP:\n|\n|  enter(self)\n|\n|  exit(self, *args)\n|      # Context management protocol: try to quit() if active\n|\n|  acct(self, password)\n|      Send new account name.\n|\n|  close(self)\n|      Close the connection without assuming anything about it.\n|\n|  connect(self, host='', port=0, timeout=-999, sourceaddress=None)\n|      Connect to host.  Arguments are:\n|      - host: hostname to connect to (string, default previous host)\n|      - port: port to connect to (integer, default previous port)\n|      - timeout: the timeout to set against the ftp socket(s)\n|      - sourceaddress: a 2-tuple (host, port) for the socket to bind\n|        to as its source address before connecting.\n|\n|  cwd(self, dirname)\n|      Change to a directory.\n|\n|  debug = setdebuglevel(self, level)\n|\n|  delete(self, filename)\n|      Delete a file.\n|\n|  dir(self, *args)\n|      List a directory in long form.\n|      By default list current directory to stdout.\n|      Optional last argument is callback function; all\n|      non-empty arguments before it are concatenated to the\n|      LIST command.  (This *should* only be used for a pathname.)\n|\n|  getline(self)\n|      # Internal: return one line from the server, stripping CRLF.\n|      # Raise EOFError if the connection is closed\n|\n|  getmultiline(self)\n|      # Internal: get a response from the server, which may possibly\n|      # consist of multiple lines.  Return a single string with no\n|      # trailing CRLF.  If the response consists of multiple lines,\n|      # these are separated by '\\n' characters in the string\n|\n|  getresp(self)\n|      # Internal: get a response from the server.\n|      # Raise various errors if the response indicates an error\n|\n|  getwelcome(self)\n|      Get the welcome message from the server.\n|      (this is read and squirreled away by connect())\n|\n|  makepasv(self)\n|      Internal: Does the PASV or EPSV handshake -> (address, port)\n|\n|  makeport(self)\n|      Create a new socket and send a PORT command for it.\n|\n|  mkd(self, dirname)\n|      Make a directory, return its full pathname.\n|\n|  mlsd(self, path='', facts=[])\n|      List a directory in a standardized format by using MLSD\n|      command (RFC-3659). If path is omitted the current directory\n|      is assumed. \"facts\" is a list of strings representing the type\n|      of information desired (e.g. [\"type\", \"size\", \"perm\"]).\n|\n|      Return a generator object yielding a tuple of two elements\n|      for every file found in path.\n|      First element is the file name, the second one is a dictionary\n|      including a variable number of \"facts\" depending on the server\n|      and whether \"facts\" argument has been provided.\n|\n|  nlst(self, *args)\n|      Return a list of files in a given directory (default the current).\n|\n|  putcmd(self, line)\n|      # Internal: send one command to the server (through putline())\n|\n|  putline(self, line)\n|      # Internal: send one line to the server, appending CRLF\n|\n|  pwd(self)\n|      Return current working directory.\n|\n|  quit(self)\n|      Quit, and close the connection.\n|\n|  rename(self, fromname, toname)\n|      Rename a file.\n|\n|  retrbinary(self, cmd, callback, blocksize=8192, rest=None)\n|      Retrieve data in binary mode.  A new port is created for you.\n|\n|      Args:\n|        cmd: A RETR command.\n|        callback: A single parameter callable to be called on each\n|                  block of data read.\n|        blocksize: The maximum number of bytes to read from the\n|                   socket at one time.  [default: 8192]\n|        rest: Passed to transfercmd().  [default: None]\n|\n|      Returns:\n|        The response code.\n|\n|  retrlines(self, cmd, callback=None)\n|      Retrieve data in line mode.  A new port is created for you.\n|\n|      Args:\n|        cmd: A RETR, LIST, or NLST command.\n|        callback: An optional single parameter callable that is called\n|                  for each line with the trailing CRLF stripped.\n|                  [default: printline()]\n|\n|      Returns:\n|        The response code.\n|\n|  rmd(self, dirname)\n|      Remove a directory.\n|\n|  sanitize(self, s)\n|      # Internal: \"sanitize\" a string for printing\n|\n|  sendcmd(self, cmd)\n|      Send a command and return the response.\n|\n|  sendeprt(self, host, port)\n|      Send an EPRT command with the current host and the given port number.\n|\n|  sendport(self, host, port)\n|      Send a PORT command with the current host and the given\n|      port number.\n|\n|  setdebuglevel(self, level)\n|      Set the debugging level.\n|      The required argument level means:\n|      0: no debugging output (default)\n|      1: print commands and responses but not body text etc.\n|      2: also print raw lines read and sent before stripping CR/LF\n|\n|  setpasv(self, val)\n|      Use passive or active mode for data transfers.\n|      With a false argument, use the normal PORT mode,\n|      With a true argument, use the PASV command.\n|\n|  size(self, filename)\n|      Retrieve the size of a file.\n|\n|  storbinary(self, cmd, fp, blocksize=8192, callback=None, rest=None)\n|      Store a file in binary mode.  A new port is created for you.\n|\n|      Args:\n|        cmd: A STOR command.\n|        fp: A file-like object with a read(numbytes) method.\n|        blocksize: The maximum data size to read from fp and send over\n|                   the connection at once.  [default: 8192]\n|        callback: An optional single parameter callable that is called on\n|                  each block of data after it is sent.  [default: None]\n|        rest: Passed to transfercmd().  [default: None]\n|\n|      Returns:\n|        The response code.\n|\n|  storlines(self, cmd, fp, callback=None)\n|      Store a file in line mode.  A new port is created for you.\n|\n|      Args:\n|        cmd: A STOR command.\n|        fp: A file-like object with a readline() method.\n|        callback: An optional single parameter callable that is called on\n|                  each line after it is sent.  [default: None]\n|\n|      Returns:\n|        The response code.\n|\n|  transfercmd(self, cmd, rest=None)\n|      Like ntransfercmd() but returns only the socket.\n|\n|  voidcmd(self, cmd)\n|      Send a command and expect a response beginning with '2'.\n|\n|  voidresp(self)\n|      Expect a response beginning with '2'.\n|\n|  ----------------------------------------------------------------------\n|  Data descriptors inherited from FTP:\n|\n|  dict\n|      dictionary for instance variables (if defined)\n|\n|  weakref\n|      list of weak references to the object (if defined)\n|\n|  ----------------------------------------------------------------------\n|  Data and other attributes inherited from FTP:\n|\n|  debugging = 0\n|\n|  file = None\n|\n|  host = ''\n|\n|  maxline = 8192\n|\n|  passiveserver = True\n|\n|  port = 21\n|\n|  sock = None\n|\n|  trustserverpasvipv4address = False\n|\n|  welcome = None\n\n#### class error_perm\n\n|  Method resolution order:\n|      errorperm\n|      Error\n|      builtins.Exception\n|      builtins.BaseException\n|      builtins.object\n|\n|  Data descriptors inherited from Error:\n|\n|  weakref\n|      list of weak references to the object (if defined)\n|\n|  ----------------------------------------------------------------------\n|  Methods inherited from builtins.Exception:\n|\n|  init(self, /, *args, kwargs)\n|      Initialize self.  See help(type(self)) for accurate signature.\n|\n|  ----------------------------------------------------------------------\n|  Static methods inherited from builtins.Exception:\n|\n|  new(*args, kwargs) from builtins.type\n|      Create and return a new object.  See help(type) for accurate signature.\n|\n|  ----------------------------------------------------------------------\n|  Methods inherited from builtins.BaseException:\n|\n|  delattr(self, name, /)\n|      Implement delattr(self, name).\n|\n|  getattribute(self, name, /)\n|      Return getattr(self, name).\n|\n|  reduce(...)\n|      Helper for pickle.\n|\n|  repr(self, /)\n|      Return repr(self).\n|\n|  setattr(self, name, value, /)\n|      Implement setattr(self, name, value).\n|\n|  setstate(...)\n|\n|  str(self, /)\n|      Return str(self).\n|\n|  withtraceback(...)\n|      Exception.withtraceback(tb) --\n|      set self.traceback to tb and return self.\n|\n|  ----------------------------------------------------------------------\n|  Data descriptors inherited from builtins.BaseException:\n|\n|  cause\n|      exception cause\n|\n|  context\n|      exception context\n|\n|  dict\n|\n|  suppresscontext\n|\n|  traceback\n|\n|  args\n\n#### class error_proto\n\n|  Method resolution order:\n|      errorproto\n|      Error\n|      builtins.Exception\n|      builtins.BaseException\n|      builtins.object\n|\n|  Data descriptors inherited from Error:\n|\n|  weakref\n|      list of weak references to the object (if defined)\n|\n|  ----------------------------------------------------------------------\n|  Methods inherited from builtins.Exception:\n|\n|  init(self, /, *args, kwargs)\n|      Initialize self.  See help(type(self)) for accurate signature.\n|\n|  ----------------------------------------------------------------------\n|  Static methods inherited from builtins.Exception:\n|\n|  new(*args, kwargs) from builtins.type\n|      Create and return a new object.  See help(type) for accurate signature.\n|\n|  ----------------------------------------------------------------------\n|  Methods inherited from builtins.BaseException:\n|\n|  delattr(self, name, /)\n|      Implement delattr(self, name).\n|\n|  getattribute(self, name, /)\n|      Return getattr(self, name).\n|\n|  reduce(...)\n|      Helper for pickle.\n|\n|  repr(self, /)\n|      Return repr(self).\n|\n|  setattr(self, name, value, /)\n|      Implement setattr(self, name, value).\n|\n|  setstate(...)\n|\n|  str(self, /)\n|      Return str(self).\n|\n|  withtraceback(...)\n|      Exception.withtraceback(tb) --\n|      set self.traceback to tb and return self.\n|\n|  ----------------------------------------------------------------------\n|  Data descriptors inherited from builtins.BaseException:\n|\n|  cause\n|      exception cause\n|\n|  context\n|      exception context\n|\n|  dict\n|\n|  suppresscontext\n|\n|  traceback\n|\n|  args\n\n#### class error_reply\n\n|  Method resolution order:\n|      errorreply\n|      Error\n|      builtins.Exception\n|      builtins.BaseException\n|      builtins.object\n|\n|  Data descriptors inherited from Error:\n|\n|  weakref\n|      list of weak references to the object (if defined)\n|\n|  ----------------------------------------------------------------------\n|  Methods inherited from builtins.Exception:\n|\n|  init(self, /, *args, kwargs)\n|      Initialize self.  See help(type(self)) for accurate signature.\n|\n|  ----------------------------------------------------------------------\n|  Static methods inherited from builtins.Exception:\n|\n|  new(*args, kwargs) from builtins.type\n|      Create and return a new object.  See help(type) for accurate signature.\n|\n|  ----------------------------------------------------------------------\n|  Methods inherited from builtins.BaseException:\n|\n|  delattr(self, name, /)\n|      Implement delattr(self, name).\n|\n|  getattribute(self, name, /)\n|      Return getattr(self, name).\n|\n|  reduce(...)\n|      Helper for pickle.\n|\n|  repr(self, /)\n|      Return repr(self).\n|\n|  setattr(self, name, value, /)\n|      Implement setattr(self, name, value).\n|\n|  setstate(...)\n|\n|  str(self, /)\n|      Return str(self).\n|\n|  withtraceback(...)\n|      Exception.withtraceback(tb) --\n|      set self.traceback to tb and return self.\n|\n|  ----------------------------------------------------------------------\n|  Data descriptors inherited from builtins.BaseException:\n|\n|  cause\n|      exception cause\n|\n|  context\n|      exception context\n|\n|  dict\n|\n|  suppresscontext\n|\n|  traceback\n|\n|  args\n\n#### class error_temp\n\n|  Method resolution order:\n|      errortemp\n|      Error\n|      builtins.Exception\n|      builtins.BaseException\n|      builtins.object\n|\n|  Data descriptors inherited from Error:\n|\n|  weakref\n|      list of weak references to the object (if defined)\n|\n|  ----------------------------------------------------------------------\n|  Methods inherited from builtins.Exception:\n|\n|  init(self, /, *args, kwargs)\n|      Initialize self.  See help(type(self)) for accurate signature.\n|\n|  ----------------------------------------------------------------------\n|  Static methods inherited from builtins.Exception:\n|\n|  new(*args, kwargs) from builtins.type\n|      Create and return a new object.  See help(type) for accurate signature.\n|\n|  ----------------------------------------------------------------------\n|  Methods inherited from builtins.BaseException:\n|\n|  delattr(self, name, /)\n|      Implement delattr(self, name).\n|\n|  getattribute(self, name, /)\n|      Return getattr(self, name).\n|\n|  reduce(...)\n|      Helper for pickle.\n|\n|  repr(self, /)\n|      Return repr(self).\n|\n|  setattr(self, name, value, /)\n|      Implement setattr(self, name, value).\n|\n|  setstate(...)\n|\n|  str(self, /)\n|      Return str(self).\n|\n|  withtraceback(...)\n|      Exception.withtraceback(tb) --\n|      set self.traceback to tb and return self.\n|\n|  ----------------------------------------------------------------------\n|  Data descriptors inherited from builtins.BaseException:\n|\n|  cause\n|      exception cause\n|\n|  context\n|      exception context\n|\n|  dict\n|\n|  suppresscontext\n|\n|  traceback\n|\n|  args\n\n### DATA\n\nall = ['FTP', 'errorreply', 'errortemp', 'errorperm', 'errorpr...\nallerrors = (<class 'ftplib.Error'>, <class 'OSError'>, <class 'EOFEr...\n\n### FILE\n\n/usr/lib/python3.10/ftplib.py\n\n"
        }
    ],
    "structuredContent": {
        "command": "ftplib",
        "section": "",
        "mode": "pydoc",
        "summary": "ftplib - An FTP client class and some helper functions.",
        "synopsis": null,
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "MODULE REFERENCE",
                "lines": 8,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 27,
                "subsections": []
            },
            {
                "name": "CLASSES",
                "lines": 9,
                "subsections": [
                    {
                        "name": "class FTP",
                        "lines": 270
                    },
                    {
                        "name": "class FTP_TLS",
                        "lines": 305
                    },
                    {
                        "name": "class error_perm",
                        "lines": 68
                    },
                    {
                        "name": "class error_proto",
                        "lines": 68
                    },
                    {
                        "name": "class error_reply",
                        "lines": 68
                    },
                    {
                        "name": "class error_temp",
                        "lines": 68
                    }
                ]
            },
            {
                "name": "DATA",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "FILE",
                "lines": 3,
                "subsections": []
            }
        ]
    }
}