ezeql / ftp4go

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

Panic on Size() with non-existent file #5

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Call ftp.Size("this_file_doesnt_exist")

What is the expected output?

An error message.

What do you see instead?

A panic in client.go:402

Please provide any additional information below.

Fixed with...

401:  response, err := ftp.SendAndRead(SIZE_FTP_CMD, filename)
402:  if err != nil {
403:     return
494:  }

Original issue reported on code.google.com by BenDagl...@gmail.com on 1 Aug 2014 at 2:34