Skip to content

Instead of Ignoring unsupported file, the import_dir is throwing error #2

@buildwithdata-db

Description

@buildwithdata-db

When imports local directory with import_dir into Workspace. And one of the subfolder has a list of unsupported files (e.g. .html files ) currently instead of ignore the unsupported file, the command is throwing errors as showed below.
And there is no option in this command to easily exclude the subfolder fromimport_dir -e is only supporting exclude hidden files. This causing a lot manual re-iteration to import each subfolder separately. It would be easier to either ignore the folder which does not have supported file extension or allow user to exclude sub-folders.

Step to reproduce:

  1. Import local directory to WORKSPACE with databricks workspace import_dir
  2. Error

send: b'"path": "path/path_subfolder/", "format": "HTML", "content": "..........#$%^&", "overwrite": true*'
reply: 'HTTP/1.1 400 Bad Request\r\n'

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