[BUG] .* in .gitignore syncs an empty folder
dilwong opened this issue · 5 comments
dilwong commented
Describe the bug
Perhaps this is intended behavior, but .*
in .gitignore
causes "Sync Destination" to sync an empty folder.
To Reproduce
Steps to reproduce the behavior:
- With the Databrick vscode extension, use "Sync Destination" to synchronize a local folder and Databricks workspace location.
- Add
.*
to the.gitignore
file. - All files are deleted from the remote Databricks workspace location.
System information:
- Version: 1.81.1 (Universal)
Commit: 6c3e3dba23e8fadc360aed75ce363ba185c49794
Date: 2023-08-09T22:20:33.924Z
Electron: 22.3.18
ElectronBuildId: 22689846
Chromium: 108.0.5359.215
Node.js: 16.17.1
V8: 10.8.168.25-electron.0
OS: Darwin arm64 22.6.0 - Databricks Extension Version v1.1.1
pietern commented
Thanks for reporting the issue. I can reproduce and we'll figure out a fix.
I may be stating the obvious, but your intent is to only ignore files starting with a .
, correct?
dilwong commented
Yes, .*
is intended to ignore all files and folders starting with a .
, but it is not intended to mean the current directory (.
) or parent directory (..
).