Skip to content
This repository was archived by the owner on Jun 25, 2026. It is now read-only.
This repository was archived by the owner on Jun 25, 2026. It is now read-only.

NotADirectoryError when running workspace export_dir on Windows #438

Description

@snosrap

If I run databricks workspace export_dir on Windows, I get a NotADirectoryError error when attempting to download directories with invalid Windows names (e.g., all the databricks_automl subdirectories, all of which contain a colon).

Example:

> databricks workspace export_dir /Users/me@example.com .

*snip*

Error: NotADirectoryError: [WinError 267] The directory name is invalid: '.\\databricks_automl\\22-01-05-17:00-automl_test_1-deadb33f'

Not only does it fail to download all the folders in /databricks_automl, it also bails out of the loop so none of the other files get downloaded.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugBroken functionalitynotebookscommands related to notebooks

    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