This commit is contained in:
Shreyas Goenka 2022-11-30 13:52:19 +01:00
parent f216f55b18
commit 8f13b55b63
No known key found for this signature in database
GPG Key ID: 92A07DF49CCB0622
1 changed files with 1 additions and 2 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
@ -97,7 +97,6 @@ func getRemoteSyncCallback(ctx context.Context, root, remoteDir string, w *datab
remoteNameCopy := remoteName
g.Go(func() error {
err := deleteFile(ctx, path.Join(remoteDir, remoteNameCopy), w)
err = deleteFile(ctx, path.Join(remoteDir, ""), w)
if err != nil {
return err
}