From c6b3b35e9862c57a665f977478767112e72fa85f Mon Sep 17 00:00:00 2001 From: shreyas-goenka <88374338+shreyas-goenka@users.noreply.github.com> Date: Wed, 30 Nov 2022 13:56:52 +0100 Subject: [PATCH] [DECO-396] Send delete file requests with recursive set to false (#106) Safeguard so bugs do not delete large amount of remote files --- cmd/sync/watchdog.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/sync/watchdog.go b/cmd/sync/watchdog.go index 61b08906..5ccb2982 100644 --- a/cmd/sync/watchdog.go +++ b/cmd/sync/watchdog.go @@ -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