Added new keybindings to help; log new file created

This commit is contained in:
ChristianVisintin
2020-12-26 10:40:45 +01:00
parent 545544ebe2
commit c0fdc9b8f8
2 changed files with 31 additions and 3 deletions

View File

@@ -398,6 +398,10 @@ impl FileTransferActivity {
format!("Could not create file \"{}\": {}", file_path.display(), err),
);
}
self.log(
LogLevel::Info,
format!("Created file \"{}\"", file_path.display()).as_str(),
);
// Reload files
let path: PathBuf = self.local.wrkdir.clone();
self.local_scan(path.as_path());
@@ -454,6 +458,11 @@ impl FileTransferActivity {
format!("Could not finalize file: {}", err),
);
}
self.log(
LogLevel::Info,
format!("Created file \"{}\"", file_path.display())
.as_str(),
);
// Reload files
let path: PathBuf = self.remote.wrkdir.clone();
self.remote_scan(path.as_path());