liximomo/vscode-sftp

ignore file not working

soth78 opened this issue · 3 comments

soth78 commented

Do you read the FAQ?

Describe the bug
Same bug as this fixed one: #534. I ignore a file and it gets uploaded when hitting Sync Local->Remote on the folder
To Reproduce
Steps to reproduce the behavior:
Just sync a folder that contains the file .DS_Store after ignoring it on the config
Config
"ignore": [".vscode",".DS_Store",".git",".gitignore",".htaccess","data"]

Expected behavior
The file shouldn't be uploaded

Desktop (please complete the following information):

  • OS: Mac 13.2.1
  • VSCode Version: 1.76.1
  • Extension Version: v1.16.1

Extension Logs from Startup - required
[03-15 12:57:36] [info] uploading temp file: /mnt/test/.DS_Store.new
[03-15 12:57:37] [info] moving from: /mnt/test/.DS_Store.new to: /mnt/test/.DS_Store
[03-15 12:57:38] [info] local ➞ remote /Users/text/Documents/test/.DS_Store

"ignore": ["**/.vscode", "**/.git"] works for me.

soth78 commented

Hi @YimianDai ,

Unfortunately with that format it doesn't on my mac:
"watcher": { "files": "**/*", "autoUpload": false, "ignore": [ "**/.vscode", "**/.DS_Store", "**/.git", "**/.gitignore", "**/.htaccess", "data" ] }

I upload the directory and the .DS_Store file appears on remote
I also tried putting .ds_store but same result, the file gets transmitted

ignore file not working for me too. How to deal it?