liximomo / vscode-sftp

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

exclude one folder #804

Open EdchaSw opened 4 years ago

EdchaSw commented 4 years ago

Hi thanks for this extension,

Is this a similar or duplicate feature request?

Is your feature request related to a problem? Please describe. I would like to know if is possible to exclude one folder

Describe the solution you'd like in the moment to upload all folders exclude one or more folder

Describe alternatives you've considered I would like to know if is possible to exclude one folder in the moment to upload all folders. The reason for this question, is I don't would like to upload the .git folder to production site

Does this project help you?

IacopoOrtis commented 3 years ago

there is an exclusion feature

bislink commented 3 years ago

How to exclude a folder from syncing both ways?

IacopoOrtis commented 3 years ago

Mind that in this way you won't be able to up nor down even if you click on up/down sync up/down on the specific file/direttory.

{
  "name": "ServerName",
  "host": "x.x.x.x",
  "protocol": "sftp",
  "port": 22,
  "username": "user",
  "privateKeyPath": "pvt/key/path",
  "remotePath": "/var/www/project/development/",
  "uploadOnSave": true,
  "ignore": [
    "**/.git",
    "**/.vscode",
    ".history",
    ".vscode"
  ],
  "watcher": {
    "files": "**/*",
    "autoUpload": true,
    "autoDelete": true
  },
  "concurrency": 8
}
alitalaee commented 9 months ago

Mind that in this way you won't be able to up nor down even if you click on up/down sync up/down on the specific file/direttory.

{
  "name": "ServerName",
  "host": "x.x.x.x",
  "protocol": "sftp",
  "port": 22,
  "username": "user",
  "privateKeyPath": "pvt/key/path",
  "remotePath": "/var/www/project/development/",
  "uploadOnSave": true,
  "ignore": [
    "**/.git",
    "**/.vscode",
    ".history",
    ".vscode"
  ],
  "watcher": {
    "files": "**/*",
    "autoUpload": true,
    "autoDelete": true
  },
  "concurrency": 8
}

It worked for me thanks