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

New Post: Calling Dispose() on scpClient doesn't release the file handle

$
0
0
Hey folks,

I need the ability to terminate an scp operation while it's in progress. After calling Disconnect() and Dispose() I still cannot delete the partially downloaded file since it says it's in use by another process. Is there a bug in scp client where it does not release the file handle? Thanks in advance

scpClient.Disconnect();
scpClient.Dispose();
File.Delete(path); // Throws exception

Viewing all articles
Browse latest Browse all 1729

Trending Articles