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,