有没有一个可以从ftp下载目录的grunt插件? [英] Is there a grunt plugin that can download a directory from ftp?

查看:93
本文介绍了有没有一个可以从ftp下载目录的grunt插件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要自动执行一项任务(通过grunt),以便下载ftp服务器上的一个文件夹的内容,然后上传到另一个文件夹或服务器 - 无关紧要,两者都是可行的。)



虽然有几个优秀的部署到ftp的插件(做上传部分),比如grunt-ftpush,grunt-ftp-deploy,grunt-ftp-upload和grunt-ftpscript, t能够找到一个执行下载部分的节点。



有一个节点模块,如 https://nodejsmodules.org/pkg/ftp-get ,但没有什么咕噜声。 div>

查看咕噜咕噜。它有单个文件和目录选项。


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.

解决方案

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

这篇关于有没有一个可以从ftp下载目录的grunt插件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆