ezeql / ftp4go

Automatically exported from code.google.com/p/ftp4go
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

UploadFile results in a panic when a none existing local path is given #2

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hi,

When using the FTP.UploadFile method and given it a none existing localpath, 
you'll get a panic instead of an error "open ...: no such file or directory". 
It is trying to close the file pointer even when the file couldn't be opened in 
the first place.

Thank you for your time developing this package, you're AWESOME!

Djuke

Original issue reported on code.google.com by dj...@xdh.nl on 25 Oct 2013 at 7:13