mirror of
https://github.com/veeso/termscp.git
synced 2025-12-07 09:36:00 -08:00
Fixed log message
This commit is contained in:
@@ -363,11 +363,12 @@ impl FileTransferActivity {
|
|||||||
LogLevel::Error,
|
LogLevel::Error,
|
||||||
format!("Could not create file \"{}\": {}", file_path.display(), err),
|
format!("Could not create file \"{}\": {}", file_path.display(), err),
|
||||||
);
|
);
|
||||||
}
|
} else {
|
||||||
self.log(
|
self.log(
|
||||||
LogLevel::Info,
|
LogLevel::Info,
|
||||||
format!("Created file \"{}\"", file_path.display()).as_str(),
|
format!("Created file \"{}\"", file_path.display()).as_str(),
|
||||||
);
|
);
|
||||||
|
}
|
||||||
// Reload files
|
// Reload files
|
||||||
let path: PathBuf = self.local.wrkdir.clone();
|
let path: PathBuf = self.local.wrkdir.clone();
|
||||||
self.local_scan(path.as_path());
|
self.local_scan(path.as_path());
|
||||||
@@ -428,11 +429,13 @@ impl FileTransferActivity {
|
|||||||
LogLevel::Warn,
|
LogLevel::Warn,
|
||||||
format!("Could not finalize file: {}", err),
|
format!("Could not finalize file: {}", err),
|
||||||
);
|
);
|
||||||
}
|
} else {
|
||||||
self.log(
|
self.log(
|
||||||
LogLevel::Info,
|
LogLevel::Info,
|
||||||
format!("Created file \"{}\"", file_path.display()).as_str(),
|
format!("Created file \"{}\"", file_path.display())
|
||||||
|
.as_str(),
|
||||||
);
|
);
|
||||||
|
}
|
||||||
// Reload files
|
// Reload files
|
||||||
let path: PathBuf = self.remote.wrkdir.clone();
|
let path: PathBuf = self.remote.wrkdir.clone();
|
||||||
self.remote_scan(path.as_path());
|
self.remote_scan(path.as_path());
|
||||||
|
|||||||
Reference in New Issue
Block a user