databricks/databricks-vscode

[BUG] .* in .gitignore syncs an empty folder

dilwong opened this issue · 5 comments

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:

  1. With the Databrick vscode extension, use "Sync Destination" to synchronize a local folder and Databricks workspace location.
  2. Add .* to the .gitignore file.
  3. All files are deleted from the remote Databricks workspace location.

System information:

  1. 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
  2. Databricks Extension Version v1.1.1

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?

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 (..).