feat: remote file ops, chunked transfers with progress, pause/cancel
- Remove dead Tauri commands/ module - Add New Folder / Delete / Rename dialogs for remote FS - Implement chunked upload/download with progress for FTP and SFTP - Wrap SFTP ops in spawn_blocking - Add ProgressAction to support cancel/pause mid-transfer - Update todo.md
This commit is contained in:
parent
42c147a13e
commit
e0edd14fa5
14 changed files with 866 additions and 384 deletions
|
|
@ -69,13 +69,27 @@ pub fn render(ui: &mut Ui, state: &mut AppState) {
|
|||
state.pending_refresh = true;
|
||||
});
|
||||
toolbar_btn_enabled(ui, "📁 New Folder", has_conn, || {
|
||||
state.pending_mkdir = true;
|
||||
state.show_mkdir_dialog = true;
|
||||
state.mkdir_name.clear();
|
||||
});
|
||||
toolbar_btn_enabled(ui, "× Delete", has_conn && has_remote_sel, || {
|
||||
state.pending_delete = true;
|
||||
if let Some(name) = state
|
||||
.active_tab_ref()
|
||||
.and_then(|t| t.remote_selected.clone())
|
||||
{
|
||||
state.show_delete_dialog = true;
|
||||
state.delete_name = name;
|
||||
}
|
||||
});
|
||||
toolbar_btn_enabled(ui, "✎ Rename", has_conn && has_remote_sel, || {
|
||||
state.pending_rename = true;
|
||||
if let Some(name) = state
|
||||
.active_tab_ref()
|
||||
.and_then(|t| t.remote_selected.clone())
|
||||
{
|
||||
state.show_rename_dialog = true;
|
||||
state.rename_old_name = name.clone();
|
||||
state.rename_new_name = name;
|
||||
}
|
||||
});
|
||||
|
||||
// Правая часть — History / Bookmarks
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue