Skip to content

Can't sync repos that have different paths. #205

@TracyMRohlin

Description

@TracyMRohlin

I have a copy of my repo in my databricks workspace: /Workspace/Users/myname@company.com/foobar and a local copy located here: /Users/myname/Code_Repos/machine-learning/foo_bar. I'd like to be able to link the two folders so i can sync between them for development, but the issue is that when i try to set the paths and click download, the download will include the entire parent structure of my workspace on databricks.

E.g., say i have a local file located here:

/Users/myname/Code_Repos/machine-learning/foo_bar/src/pages.py

and also here on databricks:

/Workspace/Users/myname@company.com/foobar/src/pages.py

I want to up/download them so that if i make changes locally i can sync and test in my workspace. But when i download, it now creates this folder structure:

src/Workspace/Users/myname@company.com/foobar/src/

This is the user settings:

{
    "jupyter.interactiveWindow.cellMarker.codeRegex": "^# COMMAND ----------|^# Databricks notebook source|^(#\\s*%%|#\\s*\\<codecell\\>|#\\s*In\\[\\d*?\\]|#\\s*In\\[ \\])",
    "jupyter.interactiveWindow.cellMarker.default": "# COMMAND ----------",
    "editor.defaultFoldingRangeProvider": "ms-python.python",
    "editor.defaultFormatter": "ms-python.python",
    "notebook.defaultFormatter": "paiqo.databricks-vscode",
    "databricks.connection.default.displayName": "Default",
    "databricks.connection.default.apiRootUrl": <host>,
    "databricks.connection.default.personalAccessToken": <token>,
    "databricks.connection.default.localSyncSubfolders": {

        "Workspace": "src",
        "Clusters": "Clusters",
        "DBFS": "DBFS",
        "Jobs": "Jobs"
    },
    "databricks.connections": [
        {
            "apiRootUrl": <host>,
            "displayName": "us-01",
            "personalAccessTokenSecure": {
                "keyTarSettingName": "us-01-API-Token"
            }
        },
        "databricks.lastActiveConnection": "us-01",
        "databricks.azure.workspaces": [

        
        ]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions