Displaying 2 results from an estimated 2 matches for "ftpliston".
Did you mean:
fpiston
2010 Sep 16
2
FTP Download
Hi,
I have problems downloading complete folders via ftp with R. Single files
work fine.
I tried Rcurl, but it does not work.
This is my code:
url =
"ftp://disc2.nascom.nasa.gov/data/TRMM/Gridded/Derived_Products/3B42_V6/Daily/2009/"
filenames = getURL(url, ftp.use.epsv = FALSE, ftplistonly = TRUE, crlf =
TRUE)
filenames = paste(url, strsplit(filenames, "\r*\n")[[1]], sep = "")
no problems until here, I get a list with the files I want. But then, when I
use:
download.file(filenames, destfile="") I don't know how to tell R to use the
same names for...
2012 Oct 11
1
Problems with getURL (RCurl) to obtain list files of an ftp directory
...f files (from ftp), I am
getting the complete html code. Anyone knows why this might happen?
This are the steps i have been doing:
> MOD16A2.doy<- '
ftp://ftp.ntsg.umt.edu/pub/MODIS/Mirror/MOD16/MOD16A2.105_MERRAGMAO/'
> items <- strsplit(getURL(MOD16A2.doy,
.opts=curlOptions(ftplistonly=TRUE)), "\n")[[1]]
>items #results
[1] "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"
http://www.w3.org/TR/html4/loose.dtd\">\n<!-- HTML listing generated by
Squid 2.7.STABLE9 -->\n<!-- Wed, 10 Oct 2012 13:43:53 GMT
--&g...