Commit 812ad07
committed
MTP: Wire up delete, rename, and move
- New `delete_volume_files_with_progress` in `delete.rs`: scans via `volume.list_directory()`, deletes per-item with full progress events, cancellation, and dry-run support
- `delete_files` and `rename_file` commands accept optional `volume_id` — routes through Volume trait for non-root volumes
- MTP move implemented as two-phase copy+delete in `TransferProgressDialog`: copy via `copyBetweenVolumes`, then delete source with volume-aware delete. Three-stage progress UI (Scanning → Copying → Removing source)
- MTP move guard removed from `DualPaneExplorer`
- Rename flow threads `volumeId` through `FilePane` → `rename-flow` → `rename-operations` → `renameFile`, skipping `checkRenamePermission`/`checkRenameValidity` for MTP volumes
- Clipboard toasts updated to suggest F5/F6 instead of generic "not supported yet"
- Fixed `sourceVolumeId` bug in `pasteFromClipboard` (was using dest volume ID)
- Updated CLAUDE.md files: `commands`, `write_operations`, `file-operations`, `mtp`, `rename`1 parent 26d8eff commit 812ad07
17 files changed
Lines changed: 830 additions & 90 deletions
File tree
- apps/desktop
- src-tauri/src
- commands
- file_system/write_operations
- src/lib
- file-explorer
- pane
- rename
- file-operations
- transfer
- mtp
- tauri-commands
- docs/specs
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
64 | 65 | | |
65 | 66 | | |
66 | 67 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
340 | 340 | | |
341 | 341 | | |
342 | 342 | | |
| 343 | + | |
343 | 344 | | |
344 | 345 | | |
345 | 346 | | |
346 | 347 | | |
| 348 | + | |
347 | 349 | | |
348 | 350 | | |
349 | | - | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
350 | 357 | | |
351 | 358 | | |
352 | | - | |
| 359 | + | |
353 | 360 | | |
354 | 361 | | |
355 | 362 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
95 | 98 | | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
115 | 142 | | |
116 | 143 | | |
117 | 144 | | |
| |||
430 | 457 | | |
431 | 458 | | |
432 | 459 | | |
| 460 | + | |
433 | 461 | | |
434 | 462 | | |
435 | 463 | | |
| |||
450 | 478 | | |
451 | 479 | | |
452 | 480 | | |
| 481 | + | |
453 | 482 | | |
454 | 483 | | |
455 | 484 | | |
| |||
471 | 500 | | |
472 | 501 | | |
473 | 502 | | |
| 503 | + | |
474 | 504 | | |
475 | 505 | | |
476 | 506 | | |
| |||
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
115 | 118 | | |
116 | 119 | | |
117 | 120 | | |
| |||
0 commit comments