This project is read-only.

Suggested bugfix: FTP.GetFile() method - file remains open after exeception

Nov 30, 2012 at 10:35 AM

After the this line of code:

if (!((response.ID == StatusCode.FileStatusOK) || (response.ID == StatusCode.ConnectionAlreadyOpen)))

Put the following :

output.Close();

Without this line the output file remains open and there is no way for the calling program to close it which is needed for further processing (for example deleting it as it is incomplete)

Dec 1, 2012 at 6:43 PM

Thanks for the report.  I've fixed the source tree and checked it in.