This commit is contained in:
2026-05-10 18:55:21 -05:00
parent 33f567d2bc
commit e4a3eaae08
8 changed files with 122 additions and 71 deletions
+13
View File
@@ -0,0 +1,13 @@
# Phase 5
For phase 5, implement the `open` command. This will provide an implementation for the `perform_open` method, and will
also need another couple error variants, unless they already exist:
- The given key might not open the given drawer file
- The drawer file might not decrypt to a valid tarball
The code for the open command is pretty much the same as the close command, in reverse order:
- Read the drawer file into an array
- Decrypt it with the key (failing if it won't decrypt, or if it's not a valid tarball)
- Expand it with the `tar` crate into the target path