Quantcast
Channel: sshnet Discussions Rss Feed
Viewing all articles
Browse latest Browse all 1729

New Post: uploading and showing in the console success vs failure

$
0
0
Can anyone provide me sample to code to update a file and then output the console or anywhere for that matter the status of the transaction?

using (var file = File.OpenRead(localFileName))
            {
                Console.WriteLine("\rUploading --> " + remoteFileName);
                sftp.UploadFile(file, remoteFileName);
                // display to console status of Upload file
            }

Viewing all articles
Browse latest Browse all 1729

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>