'Download multiple files from a .zip file via FTP
Good morning everyone
I need to download a .zip file via FTP.
The .zip file contains inside .pdf files, .csv files and other .zip files. I would like to understand how to download each individual file
library(RCurl)
library(stringr)
url = "ftp://ftp.xxxxxxxxx.it"
zip_file = getURL(url, userpwd=userpwd, ftp.use.epsv = FALSE, dirlistonly = TRUE)
filenames <- strsplit(filenames, "\r\n")
filenames = unlist(filenames)
I am trying this but I only get the list of contained files
[1] "Nuovo_tracciato_v3.csv" "Nuovo_tracciato_v3.zip" "Nuovo_tracciato_v4_html.csv"
[4] "Nuovo_tracciato_v4_html.zip" "Nuovo_tracciato_v5.csv" "Nuovo_tracciato_v5.zip"
[7] "OLD" "Specifiche_tracciati.xls" "Tracciati_web_IC_INTRACOM_ITALIA.pdf"
[10] "Tracciato_SKU_CODICEFORNITORE.csv"
How can I do? Thanks in advance to anyone who can help me solve this problem
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
