mirror of
https://github.com/narrrl/proton-drive-linux.git
synced 2026-11-22 10:33:31 +01:00
fix(trash): list a large trash, empty it, and browse it by folder
A large trash never finished listing, so the Trash page kept the rows of the last refresh that got anywhere, and Empty Trash listed the trash before sending the delete and hung there (B293). The paging fix is in proton-drive-rs 0.12.5. - The refresh reads only nodes it has not stored yet, without unlocking file keys, keeps the time the server says each was trashed, and drops rows only once the whole listing is in. - Empty Trash sends the delete at once under the trash call time limit and clears the stored listing. Restore and Delete Permanently drop their rows right away. - Schema v47 indexes trash.parent_uid and drops the stored rows once, so they are read again with real deletion times. - The Trash page groups items by the folder they were deleted from, opens deleted folders through the new ListTrashedFolder request, and has a search box and a switch back to one list. Restore and Delete Permanently on a folder row act on everything deleted from it. - pdfs trash takes --by-folder and --folder UID.
This commit is contained in:
1 parent
f141d88d97
commit
d0f9681593
30 files changed
+2661
-1306
No files matched your search
+9
-2
@@ -71,13 +71,20 @@ terminal: `pdfs copy PATH... NEW_PARENT`.
|
||||
## Trash
|
||||
|
||||
Deleted files go to the Trash, both from `~/ProtonDrive` and from the app. The **Trash** page
|
||||
lists them with the date they were deleted.
|
||||
shows the folders things were deleted from, with how many items each holds and when the last
|
||||
one went. Open a folder to see what was deleted from it, and open a deleted folder to see what
|
||||
it held. The folder button in the header switches to one list of everything, newest deletion
|
||||
first, and the search box finds an item anywhere in the Trash by name.
|
||||
|
||||
- **Restore** puts an item back where it was, together with any trashed folders above it.
|
||||
- **Delete Forever** and **Empty Trash** are permanent.
|
||||
|
||||
- Restore or delete a whole folder row to act on everything deleted from that folder.
|
||||
|
||||
From a terminal: `pdfs trash` lists the Trash with an ID for each item, and `pdfs restore`,
|
||||
`pdfs delete-forever` and `pdfs empty-trash` take those IDs.
|
||||
`pdfs delete-forever` and `pdfs empty-trash` take those IDs. `pdfs trash --by-folder` groups the
|
||||
list by the folder each item was deleted from, and `pdfs trash --folder ID` shows what a deleted
|
||||
folder holds.
|
||||
|
||||
## Earlier versions of a file
|
||||
|
||||
|
||||
Reference in new issue
Block a user