无法通过Node连接到FTP服务器

时间:2018-06-07 06:39:04

标签: node.js

我正在为我们的设备实现API同步,我必须创建节点服务,该服务侦听FTP服务器上特定文件夹上的新文件。我发现remote-file-watcher非常简单,但我一直在等待握手时超时。我的凭据很好,我使用FileZilla与他们一起登录。

由于没有其他属性或其他内容的文档,任何人都使用它并找到了解决方案吗?

const remote = new fileWatch("test", config.ftp);

remote.on('error', (server, err) => {
   console.log(err);
})

其中config.ftp类似于

{
  host: xxxx,
  username: xxxx,
  password: xxxx
}

0 个答案:

没有答案