termscp 1.0.0

termscp is a feature rich terminal file transfer and explorer with support for SCP/SFTP/FTP/Kube/S3/WebDAV
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use std::path::Path;

use super::{File, FileTransferActivity};

impl FileTransferActivity {
    /// List directory contents via the active tab's pane.
    pub(crate) fn action_scan(&mut self, p: &Path) -> Result<Vec<File>, String> {
        self.browser
            .fs_pane_mut()
            .fs
            .list_dir(p)
            .map_err(|e| format!("Failed to list directory: {}", e))
    }
}