FTP Filesystem

Manage resources on a FTP server.

class fs.ftpfs.FTPFS(host, user=u'anonymous', passwd=u'', acct=u'', timeout=10, port=21)[source]

A FTP (File Transport Protocol) Filesystem.

Parameters:
  • host (str) – A FTP host, e.g. 'ftp.mirror.nl'.
  • user (str) – A username (default is 'anonymous')
  • passwd – Password for the server, or None for anon.
  • acct – FTP account.
  • timeout (int) – Timeout for contacting server (in seconds).
  • port (int) – Port number (default 21).
features

Get features dict from FTP server.