Is there a grunt plugin that can download a directory from ftp?

谁说我不能喝 提交于 2020-01-14 03:39:05

问题


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.



来源:https://stackoverflow.com/questions/27690688/is-there-a-grunt-plugin-that-can-download-a-directory-from-ftp

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!