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 // Edit file
if let Err(err) = self.edit_local_file(tmpfile.as_path()) { self.edit_local_file(tmpfile.as_path())?;
return Err(err);
}
// Get local fs entry // Get local fs entry
let tmpfile_entry: File = match self.host.stat(tmpfile.as_path()) { let tmpfile_entry: File = match self.host.stat(tmpfile.as_path()) {
Ok(e) => e, Ok(e) => e,

View File

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