Skip to content
Back to formatted view

Raw Message

Message-ID: <8975119BCD0AC5419D61A9CF1A923E950121B8AC@iahce2knas1.iah.bbsrc.reserved>
Date: 2004-11-30T13:25:16Z
From: michael watson (IAH-C)
Subject: Opening connection to FTP site

Hi

Is it possible to open a connection to an FTP site such that I can read
the directory listing?  Eg:

URL <- url("ftp://ftp.ensembl.org", open="r")
Error in url("ftp://ftp.ensembl.org", open="r") :
	unable to open connection

URL <- url("ftp://ftp.ensembl.org")
open(URL)
Error in open.connection(URL) : unable to open connection

I think perhaps it is because there isn't actually a file there to
connect to, eg this works fine:

URL <- url("ftp://ftp.ensembl.org/pub/README", open="r")

Thanks in advance

Mick