Add a Trash view to see and empty .jellymove-trash (#3)
CI / test (push) Successful in 1m18s
CI / test (push) Successful in 1m18s
Moved folders sat in each library's .jellymove-trash until removed by hand on the server. The new Trash tab lists them on either server with
size, file count, when and where they went, and empties one item, a library or everything after a confirmation.
- trash.rs: list and empty entries. Entries are referred to by an opaque ID and resolved by scanning; only real folders directly inside a trash folder can be deleted.
- Each move now gets its own trash entry folder, with a small metadata file. Fixes moves failing when the same item had been trashed before.
- Peer API: GET /trash, POST /trash/empty, and /exports/{id}/complete now records the job and destination.
- e2e tests for listing, emptying from either side, refusing paths as IDs, and moving the same item away twice.
Closes #3
This commit is contained in:
1 parent
38319e0987
commit
4c6217bd40
16 files changed
+935
-23
No files matched your search
@@ -33,7 +33,9 @@ One agent runs next to each Jellyfin and sees the same media folders. The
|
||||
5. **Restore watch history.** Jellyfin gives moved files new item IDs, so
|
||||
jellymove re-applies each user's data to the new items, matching users by name.
|
||||
6. **Clean up.** The source moves its folder to `.jellymove-trash/` in the same
|
||||
library and rescans. It is not deleted.
|
||||
library and rescans. It is not deleted: the **Trash** tab shows what's
|
||||
waiting on each server, how much space it uses, and empties it when you're
|
||||
ready.
|
||||
|
||||
A crash or restart at any point resumes from the last completed step.
|
||||
|
||||
@@ -168,7 +170,7 @@ host. Prefer a socket proxy that only allows restarts, or restart by hand.
|
||||
## Safety rules
|
||||
|
||||
- Nothing leaves the source until the destination has indexed every file.
|
||||
- The source copy goes to `.jellymove-trash/`. Empty it yourself once you're
|
||||
- The source copy goes to `.jellymove-trash/`. Empty it from the **Trash** tab once you're
|
||||
happy (automatic retention is on the roadmap).
|
||||
- Nothing at the destination is ever overwritten.
|
||||
- A movie must be in **its own folder**. jellymove refuses flat folders like
|
||||
@@ -188,7 +190,7 @@ host. Prefer a socket proxy that only allows restarts, or restart by hand.
|
||||
## Roadmap
|
||||
|
||||
- Season-level moves; "promote" (pre-warm) shortcuts
|
||||
- Trash retention and a trash view in the UI
|
||||
- Automatic trash retention (e.g. empty after N days)
|
||||
- Pairing codes and pinned TLS instead of a shared token
|
||||
- Outbound-only control channel so a NATed home agent needs no inbound port
|
||||
- Automatic tiering rules ("demote anything unwatched for 90 days when the cloud disk is over 80%")
|
||||
|
||||
Reference in new issue
Block a user