dont download file with progresbar
I used this WinSCP library in WPF to download files from the FTP server. Everything worked until I decided to add an installation with a progress bar:
It was giving an install error!
Without this, everything works, but I still need to add the progres bar update.
The size of the files folder is very huge!
My code:
Version WinSCP: 5.19.3
void SessionFileTransferProgress(Object sender , FileTransferProgressEventArgs e) { MessageBox.Show(e.FileName); }
Without this, everything works, but I still need to add the progres bar update.
The size of the files folder is very huge!
My code:
using (Session session = new Session()) { // Will continuously report progress of transfer // session.FileTransferProgress += SessionFileTransferProgress; // Connect session.Open(sessionOptions); try { // Download files and throw on any error session.GetFiles(url, path); } finally { // Terminate line after the last file (if any) MessageBox.Show("Download stop"); } }