0 Star 0 Fork 0

组件积累/upload

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
transform.js 616 Bytes
一键复制 编辑 原始数据 按行查看 历史
tanyue 提交于 2017-03-15 14:32 . upload
var ftpClient = require('./lib/client.js'),
config = {
host: '117.114.138.52',
port: 20000,
user: 'eh',
password: '123456'
},
options = {
logging: 'basic'
},
client = new ftpClient(config, options);
client.connect(function () {
client.upload(['ftp/**'], '/home/ftp', {
baseDir: 'ftp',
overwrite: 'older'
}, function (result) {
console.log(result);
});
// client.download('/home/ftp/', 'video/', {
// overwrite: 'all'
// }, function (result) {
// console.log(result);
// });
});
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/react-module/upload.git
git@gitee.com:react-module/upload.git
react-module
upload
upload
master

搜索帮助