This commit is contained in:
veeso
2023-02-11 12:23:56 +01:00
parent 62003308a7
commit 4d5f3a6b63
40 changed files with 139 additions and 147 deletions
@@ -12,14 +12,14 @@ impl FileTransferActivity {
pub(crate) fn action_local_find(&mut self, input: String) -> Result<Vec<File>, String> {
match self.host.find(input.as_str()) {
Ok(entries) => Ok(entries),
Err(err) => Err(format!("Could not search for files: {}", err)),
Err(err) => Err(format!("Could not search for files: {err}")),
}
}
pub(crate) fn action_remote_find(&mut self, input: String) -> Result<Vec<File>, String> {
match self.client.as_mut().find(input.as_str()) {
Ok(entries) => Ok(entries),
Err(err) => Err(format!("Could not search for files: {}", err)),
Err(err) => Err(format!("Could not search for files: {err}")),
}
}
@@ -72,7 +72,7 @@ impl FileTransferActivity {
) {
self.log_and_alert(
LogLevel::Error,
format!("Could not upload file: {}", err),
format!("Could not upload file: {err}"),
);
}
}
@@ -94,7 +94,7 @@ impl FileTransferActivity {
) {
self.log_and_alert(
LogLevel::Error,
format!("Could not download file: {}", err),
format!("Could not download file: {err}"),
);
}
}
@@ -133,7 +133,7 @@ impl FileTransferActivity {
{
self.log_and_alert(
LogLevel::Error,
format!("Could not upload file: {}", err),
format!("Could not upload file: {err}"),
);
}
}
@@ -163,7 +163,7 @@ impl FileTransferActivity {
) {
self.log_and_alert(
LogLevel::Error,
format!("Could not download file: {}", err),
format!("Could not download file: {err}"),
);
}
}