diff --git a/Cargo.lock b/Cargo.lock index 8ee04dd..f0f44d5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -211,7 +211,7 @@ checksum = "a357d28ed41a50f9c765dbfe56cbc04a64e53e5fc58ba79fbc34c10ef3df831f" [[package]] name = "fast-scp" -version = "0.1.1" +version = "0.1.2" dependencies = [ "anyhow", "clap", diff --git a/Cargo.toml b/Cargo.toml index 97f3c94..decf887 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "fast-scp" -version = "0.1.1" +version = "0.1.2" description = "A fast and simple scp CLI tool" license = "MIT" repository = "https://github.com/dcodesdev/fast-scp" diff --git a/src/scp.rs b/src/scp.rs index 9b4470e..c7b2d38 100644 --- a/src/scp.rs +++ b/src/scp.rs @@ -44,7 +44,11 @@ impl Connect { async fn handle_file(&self, from: &PathBuf, to: &PathBuf) -> Result<()> { let full_path = to.join(from.file_name().unwrap_or(OsStr::new("unknown"))); - copy_file_from_remote(&self.ssh_opts, from.clone(), full_path, &self.mode).await + let result = + copy_file_from_remote(&self.ssh_opts, from.clone(), full_path, &self.mode).await; + + println!("✅ File received successfully"); + result } async fn handle_dir(&self, from: &PathBuf, to: &PathBuf) -> Result<()> {