Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions databricks_cli/workspace/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
from base64 import b64encode, b64decode

import click
from requests.exceptions import HTTPError

from databricks_cli.dbfs.exceptions import LocalFileExistsException
from databricks_cli.sdk import WorkspaceService
Expand Down Expand Up @@ -140,11 +139,7 @@ def import_workspace_dir(self, source_path, target_path, overwrite, exclude_hidd
if exclude_hidden_files:
# for now, just exclude hidden files or directories based on starting '.'
filenames = [f for f in filenames if not f.startswith('.')]
try:
self.mkdirs(target_path, headers=headers)
except HTTPError as e:
click.echo(e.response.json())
return
self.mkdirs(target_path, headers=headers)
for filename in filenames:
cur_src = os.path.join(source_path, filename)
# don't use os.path.join here since it will set \ on Windows
Expand Down