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.
1 parent 9c92da1 commit 50a1942Copy full SHA for 50a1942
1 file changed
fs/ftpfs.py
@@ -453,6 +453,13 @@ def ftp(self):
453
"""~ftplib.FTP: the underlying FTP client.
454
"""
455
return self._get_ftp()
456
+
457
+ def geturl(self, path, purpose="download"):
458
+ # type: (str, str) -> Text
459
+ """Get FTP url for resource."""
460
+ if purpose != "download":
461
+ raise errors.NoURL(path, purpose, "No such purpose")
462
+ return "{}/{}".format(self.ftp_url, path)
463
464
def _get_ftp(self):
465
# type: () -> FTP
0 commit comments