You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 6e6c170
Browse filesBrowse the repository at this point in the historyBrowse files
Add Trash (soft-delete) with restore, purge and auto-retention
Deleting a file or folder now moves it to the Trash instead of destroying it:
- Schema: deletedAt on FileObject and Folder (+ indexes), new migration.
- services/trash.ts: trash/restore/purge for files and folders (folder ops
cascade the whole subtree), listTrash (only Trash 'roots'), emptyTrash, and
purgeExpiredTrash for retention. Trashed files keep counting against quota
until purged; restore re-homes to root if the original parent is gone/trashed.
- Routes: DELETE /files|/folders|/zk now soft-delete; new /trash routes (list,
restore, purge, empty). Listings and folder-share entries exclude trashed.
- Maintenance auto-purges past TRASH_RETENTION_DAYS (default 30).
- Web: Corbeille page (restore / delete-forever / empty) + sidebar link; Drive
delete copy reworded to 'mettre à la corbeille'.
- Tests: file + folder trash lifecycle; updated the delete-quota test (41 pass).
0 commit comments