liximomo / vscode-sftp

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

ignore file not working #1014

Open soth78 opened 1 year ago

soth78 commented 1 year ago

Do you read the FAQ?

Describe the bug Same bug as this fixed one: https://github.com/liximomo/vscode-sftp/issues/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):

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

YimianDai commented 1 year ago

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

soth78 commented 1 year ago

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

WLBRich commented 10 months ago

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