Skip to content

Workspace API removes extension from Python files #630

@fferegrino

Description

@fferegrino

We are running into an issue when uploading Python files using the method import_workspace_dir in the WorkspaceApi class. However, these files are not treated as Python source files, but as Databricks notebooks.

The only reason I managed to pinpoint this issue is the fact that the API removes the extension and as such they are no longer interpreted as Python modules but as Databricks notebooks.

cur_dst = cur_dst[:-len(ext)]

Is this intended behaviour? could this be changed by not removing the file extension, unless the file is actually a Databricks notebook?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions