Skip to content

Commit 41fd7ef

Browse files
committed
Illustrate how to use a proxy server in FTPFS
1 parent 7fe529b commit 41fd7ef

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

fs/ftpfs.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,12 @@ class FTPFS(FS):
378378
>>> ftp_fs = FTPFS("test.rebex.net", user="demo", passwd="password")
379379
>>> ftp_fs = fs.open_fs('ftp://demo:password@test.rebex.net')
380380
381+
Connecting via a proxy is supported. If using a FS URL, the proxy
382+
URL will need to be added as a URL parameter::
383+
384+
>>> ftp_fs = FTPFS("ftp.ebi.ac.uk", proxy="test.rebex.net")
385+
>>> ftp_fs = fs.open_fs('ftp://ftp.ebi.ac.uk/?proxy=test.rebex.net')
386+
381387
"""
382388

383389
_meta = {

0 commit comments

Comments
 (0)