this is my downloading file code
public void download()
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.