Entering edit mode
li lilingdu
▴
450
@li-lilingdu-1884
Last seen 6.6 years ago
Dear all,
For local machine, "list.files" works well to list all files
recursively in
particular directory. But , is there a function can be used to list
all
files in particular directory on a FTP site?
I use functions of RCurl package to do something like:
===========================================================
library(RCurl)
getURL("ftp://ftp.ncbi.nih.gov/pub/geo/DATA/SOFT/GDS/")->inter
###inter give some meaningful results
getURL("ftp://ftp.ncbi.nih.gov/pub/geo/DATA/supplementary/samples")->i
nter2
###above command did not work
Error in curlPerform(curl = curl, .opts = opts, .encoding = .encoding)
:
RETR response: 550
===========================================================
Any suggestions? Many thanks!
---
Ligang
[[alternative HTML version deleted]]