Commit 4a86a85
committed
Bugfix: Fix cross-volume copy with SmbVolume
- `is_local_volume()` in `volume_strategy.rs` incorrectly classified `SmbVolume` as local (its root `/Volumes/naspi` passed the path-prefix check). This caused Local→SMB copies to look for the source file on the local disk instead of using the volume copy path.
- Now uses `volume.local_path().is_some()` which is the correct semantic check. `SmbVolume` returns `None` (ops go through smb2), so it correctly takes the volume-aware copy path.1 parent 2df24ac commit 4a86a85
File tree
1 file changed
+6
-4
lines changed- apps/desktop/src-tauri/src/file_system/write_operations
1 file changed
+6
-4
lines changedLines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
19 | 23 | | |
20 | | - | |
21 | | - | |
22 | | - | |
| 24 | + | |
23 | 25 | | |
24 | 26 | | |
25 | 27 | | |
| |||
0 commit comments