FTP Filesystem¶
Manage filesystems on remote FTP servers.
-
class
fs.ftpfs.
FTPFS
(host, user=u'anonymous', passwd=u'', acct=u'', timeout=10, port=21)¶ A FTP (File Transport Protocol) Filesystem.
Parameters: - host (str) – A FTP host, e.g.
'ftp.mirror.nl'
. - user (str, optional) – A username (default is
'anonymous'
). - passwd (str, optional) – Password for the server, or
None
for anon. - acct (str, optional) – FTP account.
- timeout (int, optional) – Timeout for contacting server (in seconds, defaults to 10).
- port (int, optional) – FTP port number (default 21).
-
ftp_url
¶ Get the FTP url this filesystem will open.
-
supports_mlst
¶ Check if server supports MLST feature.
- host (str) – A FTP host, e.g.