Skip to content

workspace export-dir failing on new notebook #5171

@lpawlak95

Description

@lpawlak95

Describe the issue

When I run export-dir on my user folder, it fails if there's an empty "New Notebook" file. The error says can't open $path\folder\New Notebook 2026-05-04 13:54:24.py"
I thought this may be an issue with the Windows paths, but... Its not a problem with New Query, which appears to be skipped.

Steps to reproduce the behavior

Please list the steps required to reproduce the issue, for example:

  1. Navigate to user folder
  2. Create a new notebook
  3. Clone the newly opened file
  4. Open up terminal
  5. Use databricks workspace export-dir command with source Path being Path where your newly created notebook is
  6. You should get an error along the lines "Error: open $path\folder\New Notebook 2026-05-04 13:54:24.py: the filename, directory name, or volume label syntax is incorrect".

Expected Behavior

I'd expect either file would be skipped but warn would show.
Alternatively: The path adjusted if that's a strictly Windows issue (but then replaced again to fit if imported)

Actual Behavior

I'd expect either file would be skipped but warn would show.
Alternatively: The path adjusted if that's a strictly Windows issue (but then replaced again to fit if imported)

OS and CLI version

CLI version: v0.295.0
OS: Windows

Is this a regression?

No? But I havent tested with other versions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    CLICLI related issues

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions