feat: implement empty trash

This commit is contained in:
2025-10-12 14:31:02 +00:00
parent 5eff2fa756
commit 03d36a2c80
4 changed files with 170 additions and 23 deletions

View File

@@ -128,6 +128,12 @@ export const permanentlyDeleteItems = authenticatedMutation({
},
})
export const emptyTrash = authenticatedMutation({
handler: async (ctx) => {
return await FileSystem.emptyTrash(ctx)
},
})
export const restoreItems = authenticatedMutation({
args: {
handles: v.array(VFileSystemHandle),