Quantcast
Channel: sshnet Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 1026

Commented Issue: SftpClient deletefile/delete fails [1484]

$
0
0
using (SftpClient sftp = new SftpClient(hostName, portNumber, userName, passWord))
{
sftp.Connect();
sftp.Delete(remotePath);
}

Code throws "Permission Denied" error, but i have permission to delete file. I confirmed this using WinSCP both their UI and .NET library (works fine).
Comments: ** Comment from web user: olegkap **

Hi,

I just did a quick test and everything works fine for me.
The reason you getting "Permission Denied" because that's an error that I receiving from the server so I simply passing it back to the user.
I would check serer log files to see if you can find some usefull information there.
Unfortunately I cannot recreate this problem from the code you provided.
If you can provide me with step to create the file on remote machine so I could try it and see for my self I can then look into it.

Thanks,
Oleg


Viewing all articles
Browse latest Browse all 1026

Trending Articles



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