liximomo / vscode-sftp

Super fast sftp/ftp extension for VS Code
MIT License
1.5k stars 256 forks source link

Allow multiple watched folders #913

Open nine-2-five opened 3 years ago

nine-2-five commented 3 years ago

Is it possible to configure the plugin to watch multiple folders? Something like:

"watcher": {
      "files": ["wp-content/themes/my-theme/**", "wp-content/plugins/my-plugin/**"]
}
mean-cj commented 3 years ago

try

  "watcher": {
    "files":"wp-content/{themes,plugins}/**/*",
    "autoUpload": true,
    "autoDelete": false
  },
nine-2-five commented 3 years ago

Thanks, but that would still upload the other changed plugins and themes. No way to specify multiple differently rooted folders?

marianaforteza commented 2 years ago

Did you find the solution?

nine-2-five commented 2 years ago

No, I made a rudimentary Node script to replace this functionality with a chokidar watcher that calls my old rsync shell script. But I'm currently building another one to allow deployment of the chosen/latest Git commit incrementally.