请问hexo的ftpsync问题?

_config.xml中配置如下:

deploy:
- type: ftpsync
  host: xxx.xxx.xxx.xxx
  user: userAAA
  pass: pwdAAA
  remote: /xxx.com/wwwroot
  port: 21
  ignore: someDir,fileA
  connections: 2
  verbose: true

其中的ignore怎么配置都不生效.哪怕只放了一个目录名,看log在deploy时也试图把这个目录下所有文件给删除了.

好吧,我知道怎么写了:

ignore: ['dir1','file1.html']

但是出现以下报错:

MKDIR failed.
Cannot create a file when that file already exists.

有同仁能指点下么?
难道是jsftp的问题?

阅读 3.8k
2 个回答
新手上路,请多包涵
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进