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

Apr 22, 2013 at 1:06 AM
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

File.Delete(path); // Throws exception