Skip to content

Commit

Permalink
version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
dcodesdev committed May 11, 2024
1 parent 1315a61 commit d1926e5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
6 changes: 5 additions & 1 deletion src/scp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<()> {
Expand Down

0 comments on commit d1926e5

Please sign in to comment.