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:
- Import local directory to WORKSPACE with
databricks workspace import_dir
- Error
send: b'"path": "path/path_subfolder/", "format": "HTML", "content": "..........#$%^&", "overwrite": true*'
reply: 'HTTP/1.1 400 Bad Request\r\n'