This commit is contained in:
veeso
2022-10-10 17:40:03 +02:00
parent 0f432d0375
commit f27a4e2a02
2 changed files with 4 additions and 12 deletions

View File

@@ -148,9 +148,7 @@ impl FileTransferActivity {
}
};
// Edit file
if let Err(err) = self.edit_local_file(tmpfile.as_path()) {
return Err(err);
}
self.edit_local_file(tmpfile.as_path())?;
// Get local fs entry
let tmpfile_entry: File = match self.host.stat(tmpfile.as_path()) {
Ok(e) => e,

View File

@@ -326,11 +326,7 @@ impl FileTransferActivity {
break;
}
// Send entry; name is always None after first call
if let Err(err) =
self.filetransfer_send_recurse(entry, remote_path.as_path(), None)
{
return Err(err);
}
self.filetransfer_send_recurse(entry, remote_path.as_path(), None)?
}
Ok(())
}
@@ -717,13 +713,11 @@ impl FileTransferActivity {
}
// Receive entry; name is always None after first call
// Local path becomes local_dir_path
if let Err(err) = self.filetransfer_recv_recurse(
self.filetransfer_recv_recurse(
entry,
local_dir_path.as_path(),
None,
) {
return Err(err);
}
)?
}
Ok(())
}