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
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