return error of io.copy in GetFile
This commit is contained in:
parent
4f07dd2309
commit
7cf561358b
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue