[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:
shreyas-goenka 2022-11-30 13:56:52 +01:00 committed by GitHub
parent 2ebfa5f369
commit c6b3b35e98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ func deleteFile(ctx context.Context, path string, w *databricks.WorkspaceClient)
err := w.Workspace.Delete(ctx,
workspace.Delete{
Path: path,
Recursive: true,
Recursive: false,
},
)
// We explictly ignore RESOURCE_DOES_NOT_EXIST errors for deletion of files