1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-10 06:34:17 +03:00

ssh: move sftp module to top level

was getting too deep in there!
This commit is contained in:
Wez Furlong 2021-10-18 07:33:39 -07:00
parent 44bbfd2894
commit 228df03059
7 changed files with 6 additions and 10 deletions

View File

@ -3,12 +3,14 @@ mod config;
mod host;
mod pty;
mod session;
mod sftp;
pub use auth::*;
pub use config::*;
pub use host::*;
pub use pty::*;
pub use session::*;
pub use sftp::*;
// NOTE: Re-exported as is exposed in a public API of this crate
pub use camino::{Utf8Path, Utf8PathBuf};

View File

@ -1,12 +1,12 @@
use crate::config::ConfigMap;
use crate::pty::*;
use crate::session::sftp::{
self, File, FileId, FileRequest, Metadata, SftpChannelError, SftpChannelResult, SftpRequest,
};
use crate::session::{
ChannelWrap, Exec, ExecResult, FileWrap, SessionEvent, SessionRequest, SessionWrap,
SignalChannel,
};
use crate::sftp::{
self, File, FileId, FileRequest, Metadata, SftpChannelError, SftpChannelResult, SftpRequest,
};
use anyhow::{anyhow, Context};
use camino::Utf8PathBuf;
use filedescriptor::{

View File

@ -15,15 +15,9 @@ use std::collections::HashMap;
use std::convert::TryFrom;
use std::io::Write;
use std::sync::{Arc, Mutex};
use crate::sftp::{Metadata, Sftp, SftpChannelError, SftpChannelResult, SftpRequest};
mod inner;
mod sftp;
use sftp::SftpRequest;
pub use sftp::{
File, FilePermissions, FileType, Metadata, OpenFileType, OpenOptions, RenameOptions, Sftp,
SftpChannelError, SftpChannelResult, SftpError, SftpResult, WriteMode,
};
#[derive(Debug)]
pub enum SessionEvent {