_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的问题?
OK, I Fix it myself , it's parse-listing's bug.
https://github.com/sergi/parse-listing/pull/8