Is there a grunt plugin that can download a direct

2019-06-06 10:06发布

问题:

I need to automate a task (via grunt) that downloads contents of one folder on a ftp server, and then uploads to another (folder or server - doesn't matter, both are plausable).

While there are several great plugins for deploying to ftp (doing the upload part), like grunt-ftpush, grunt-ftp-deploy, grunt-ftp-upload and grunt-ftpscript, I haven't been able to find one which performs the download part.

There a node module like https://nodejsmodules.org/pkg/ftp-get, but nothing for grunt.

回答1:

Have a look at grunt-curl. It has options for single files as well as directories.



标签: ftp gruntjs