Save and delete files in an aindrive drive without overwriting another change #2
Reference in New Issue
Block a user
Delete Branch "save-and-delete"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
A token that may write now opens a writable folder. A save sends the file whole with the revision it was read at, so aindrive refuses one that would overwrite a newer change; saves stop at 1 MiB. A lost answer or a device timeout reports an unknown outcome. Only files are deleted: aindrive removes folders recursively and hides
.gitfrom listings. Follows lead/memona-plugin-aindrive#1Verified: 39 unit tests, and in Memona an edit autosaved to the drive's disk, while a file changed underneath showed Changed elsewhere and kept the other version. Live calls covered create-only, a stale revision, a 1 MiB save at 12.9M of 20M fuel, and deletes.
🤖 Generated with Claude Code
✅ Approved
Summary: Conditional saves, safe file-only deletion, and unknown-outcome handling are ready.
Strengths
Implementation
Checks
Passed
cargo fmt --checkcargo clippy --locked --all-targets -- -D warningscargo test --locked --lib— 39 passedcargo build --locked --release --target wasm32-wasip2Recommendations
None
Declined to judge
None
Assessment
Ready to merge