Is there a grunt plugin that can download a direct

2019-06-06 10:37发布

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.

标签: ftp gruntjs
1条回答
Lonely孤独者°
2楼-- · 2019-06-06 10:43

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

查看更多
登录 后发表回答