fix(files): DeleteDavItems with Immediately true

Soft-delete (Immediately false) failed on some project files with
"You don't have enough permission to create" when moving to Trash.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-28 09:56:10 +01:00
co-authored by Cursor
parent 3713ed6c51
commit d9a7adcd94
+1 -1
View File
@@ -169,7 +169,7 @@ func (c *Client) CopyDavItems(ctx context.Context, folderIDs, fileIDs []string,
// DeleteDavItems deletes the given folders and/or files.
func (c *Client) DeleteDavItems(ctx context.Context, folderIDs, fileIDs []string) error {
body := map[string]any{"DeleteAfter": true, "Immediately": false}
body := map[string]any{"DeleteAfter": true, "Immediately": true}
for _, id := range folderIDs {
if _, err := c.deleteJSON(ctx, "/api/2.0/files/folder/"+url.PathEscape(id), body); err != nil {
return err