这是indexloc提供的服务,不要输入任何密码
Skip to content

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

@GoogleCodeExporter

Description

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions