return error of io.copy in GetFile

This commit is contained in:
Denis-Cosmin Nutiu 2017-12-22 20:04:33 +02:00
parent 4f07dd2309
commit 7cf561358b

View file

@ -78,7 +78,7 @@ func GetFile(c Client, path string) (int64, error) {
totalSend, err := io.Copy(c.Connection(), file) totalSend, err := io.Copy(c.Connection(), file)
return totalSend, nil return totalSend, err
} }
func sanitizeFilePath(path string) (string, bool) { func sanitizeFilePath(path string) (string, bool) {