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

New Post: sftp download file

$
0
0
this is my downloading file code

public void download()
    {

        if (connection_flag == false)
            connect();


        string downloadedFileName = "upload/01fe46c977e2cbf2159b571a2503a686.zip";
        using (var stream = new FileStream("E:\\abedi", FileMode.Open, FileAccess.ReadWrite, FileShare.ReadWrite))
        {

            //download the file to our local path
            sftp.DownloadFile(downloadedFileName, stream);
            stream.Close();

        }
    }
error doanloading is : Access to the path 'E:\abedi' is denied.

Viewing all articles
Browse latest Browse all 1729

Trending Articles



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