Given a set of ftp locations, return the directory listing as a data.frame.

ftp_dir_listing(url)

Arguments

url

character() vector of ftp urls

Details

Note that this function must loop over the URLs, so it may be slow and inefficient.

Examples

ftp_dir_listing(accession2url(c('SRR000237','SRR000238', 'SRR925811')))
#> Error in `$<-.data.frame`(`*tmp*`, url, value = c("ftp://ftp.sra.ebi.ac.uk/vol1/fastq/SRR000/SRR000237/SRR000237.fastq.gz", "ftp://ftp.sra.ebi.ac.uk/vol1/fastq/SRR000/SRR000238/SRR000237.fastq.gz", "ftp://ftp.sra.ebi.ac.uk/vol1/fastq/SRR925/SRR925811/SRR000237.fastq.gz")): replacement has 3 rows, data has 1