feat: impl file/dir restoration from trash

This commit is contained in:
2025-10-05 14:29:45 +00:00
parent 4978a173a8
commit 33b235517c
5 changed files with 215 additions and 17 deletions

View File

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