mirror of https://github.com/databricks/cli.git
Path escape file path in filer interface (#254)
This commit is contained in:
parent
ad666ff796
commit
ae09eb02d5
|
@ -54,7 +54,7 @@ func (w *WorkspaceFilesClient) Write(ctx context.Context, name string, reader io
|
|||
overwrite := slices.Contains(mode, OverwriteIfExists)
|
||||
urlPath := fmt.Sprintf(
|
||||
"/api/2.0/workspace-files/import-file/%s?overwrite=%t",
|
||||
url.QueryEscape(strings.TrimLeft(absPath, "/")),
|
||||
url.PathEscape(strings.TrimLeft(absPath, "/")),
|
||||
overwrite,
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue