We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
fs.ftpfs
1 parent 64ba8ce commit b95adcbCopy full SHA for b95adcb
1 file changed
fs/ftpfs.py
@@ -363,17 +363,21 @@ class FTPFS(FS):
363
Create with the constructor::
364
365
>>> from fs.ftpfs import FTPFS
366
- >>> ftp_fs = FTPFS()
+ >>> ftp_fs = FTPFS("demo.wftpserver.com")
367
368
Or via an FS URL::
369
370
- >>> import fs
371
- >>> ftp_fs = fs.open_fs('ftp://')
+ >>> ftp_fs = fs.open_fs('ftp://test.rebex.net')
372
373
Or via an FS URL, using TLS::
374
375
376
- >>> ftp_fs = fs.open_fs('ftps://')
+ >>> ftp_fs = fs.open_fs('ftps://demo.wftpserver.com')
+
+ You can also use a non-anonymous username, and optionally a
377
+ password, even within a FS URL::
378
379
+ >>> ftp_fs = FTPFS("test.rebex.net", user="demo", passwd="password")
380
+ >>> ftp_fs = fs.open_fs('ftp://demo:password@test.rebex.net')
381
382
"""
383
0 commit comments