mirror of
https://github.com/veeso/termscp.git
synced 2026-04-14 22:21:35 -07:00
Option: prompt user when about to replace an existing file caused by a file transfer
This commit is contained in:
@@ -1187,4 +1187,14 @@ impl FileTransferActivity {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// -- file exist
|
||||
|
||||
pub(crate) fn local_file_exists(&mut self, p: &Path) -> bool {
|
||||
self.host.file_exists(p)
|
||||
}
|
||||
|
||||
pub(crate) fn remote_file_exists(&mut self, p: &Path) -> bool {
|
||||
self.client.stat(p).is_ok()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user