mirror of https://github.com/databricks/cli.git
[DECO-396] Send delete file requests with recursive set to false (#106)
Safeguard so bugs do not delete large amount of remote files
This commit is contained in:
parent
2ebfa5f369
commit
c6b3b35e98
|
@ -66,7 +66,7 @@ func deleteFile(ctx context.Context, path string, w *databricks.WorkspaceClient)
|
||||||
err := w.Workspace.Delete(ctx,
|
err := w.Workspace.Delete(ctx,
|
||||||
workspace.Delete{
|
workspace.Delete{
|
||||||
Path: path,
|
Path: path,
|
||||||
Recursive: true,
|
Recursive: false,
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
// We explictly ignore RESOURCE_DOES_NOT_EXIST errors for deletion of files
|
// We explictly ignore RESOURCE_DOES_NOT_EXIST errors for deletion of files
|
||||||
|
|
Loading…
Reference in New Issue