Thursday 4 May 2017

Node.js download file from public FTP

Hi I am trying to write a node.js service to download files from public FTP. What I can do manually is to simply paste a ftp url to browser and hit enter. Then the file will be downloaded. I don't know the ftp's domain, username or password. An example is like this:

ftp://ftp.agrc.utah.gov/UtahSGID_Vector/UTM12_NAD83/TRANSPORTATION/UnpackagedData/Roads/_Statewide/Roads_shp.zip

I tried to use node-request but it doesn't accept ftp protocol. Does any one know a good tool for this task?



via zhangjinzhou

No comments:

Post a Comment